[Tickets #920] Date display in Edit error

bugs at bugs.horde.org bugs at bugs.horde.org
Wed Dec 1 04:22:06 PST 2004


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=920
-----------------------------------------------------------------------
 Ticket     | 920
 Updated By | horde at sadeghi.co.uk
 Summary    | Date display in Edit error
 Queue      | Turba
 Version    | 2.0-RC2
 State      | Feedback
 Priority   | 3. High
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


horde at sadeghi.co.uk (2004-12-01 04:22) wrote:

I have traced the bug to UI/UI/varrenderer/html.php . Since my date is full
two digits for month, the select field does not match 1 to 9. I padded the
digits and it now works , but probably it has problems with single digit
months:

  function _renderVarInput_monthdayyear(&$form, &$var, &$vars)
    {
        $dates = array();
        $dates['month'] = array(''   => _("MM"),
                                '01'  => _("January"),
                                '02'  => _("February"),
                                '03'  => _("March"),
                                '04'  => _("April"),
                                '05'  => _("May"),
                                '06'  => _("June"),
                                '07'  => _("July"),
                                '08'  => _("August"),
                                '09'  => _("September"),
                                '10' => _("October"),
                                '11' => _("November"),
                                '12' => _("December"));
        $dates['day'] = array('' => _("DD"));




More information about the bugs mailing list