6.0.0-beta1
7/11/25

[#920] Date display in Edit error
Summary Date display in Edit error
Queue Turba
Queue Version 2.0-RC2
Type Bug
State Resolved
Priority 3. High
Owners
Requester horde (at) sadeghi (dot) co (dot) uk
Created 12/01/2004 (7527 days ago)
Due
Updated 12/01/2004 (7527 days ago)
Assigned 12/01/2004 (7527 days ago)
Resolved 12/01/2004 (7527 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/01/2004 01:06:56 PM Jan Schneider Comment #5
State ⇒ Resolved
Reply to this comment
I only tested with two-digit months. ;-)



Fixed in CVS, framework/Form/Form.php.
12/01/2004 12:22:05 PM horde (at) sadeghi (dot) co (dot) uk Comment #4 Reply to this comment
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"));
12/01/2004 12:16:03 PM horde (at) sadeghi (dot) co (dot) uk Comment #3 Reply to this comment
Sorry I forgot to mention that I am using monthdayyear field to 
display the dates. Dates are coming from mysql and are in correct 
format of YYYY-MM-DD





Hamid


12/01/2004 10:43:49 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Still works fine here. The birthday is a monthdayyear field, and in 
the backend stored into a date field.
12/01/2004 12:40:32 AM horde (at) sadeghi (dot) co (dot) uk Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Date display in Edit error
Queue ⇒ Turba
Reply to this comment
I have just update to the latest cvs version. The date display in Edit 
dow not display the month, day and year seems to be fine.



This was previously working from two weeks ago. I am running the following

Horde Version

Horde: 3.0-cvs

Horde Applications

Gollem: 1.0-cvs (run Gollem tests)

Hermes: 0.1-cvs

Horde: 3.0-cvs

Imp: 4.0-cvs (run Imp tests)

Kronolith: 2.0-cvs

Mnemo: 2.0-cvs

Nag: 2.0-cvs

Passwd: 3.0-cvs

Turba: 2.0-cvs (run Turba tests)

PHP Version

View phpinfo() screen

View loaded extensions

PHP Version: 4.3.8

PHP Major Version: 4.3

PHP Minor Version: 8

PHP Version Classification: release

You are running a supported version of PHP.


Saved Queries