Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.2.16

Bug #388 Incorrect date element's minutes and seconds assignment
Submitted: 2003-12-09 12:08 UTC
From: martel at post dot pl Assigned: avb
Status: Closed Package: HTML_QuickForm
PHP Version: 4.3.4 OS: Linux Debian
Roadmaps: (Not assigned)    
Subscription  


 [2003-12-09 12:08 UTC] martel at post dot pl
Description: ------------ When assigning default to date element, the minutes and seconds are incorrectly displayed. It seems that minutes are assigned the same number as hours and seconds are actually assigned the number of real minutes. Observed on version 3.2. Previous version of Quickform (3.1.1) works fine. This possibly could be associated with a bug number 351, but I'm not sure about that. Reproduce code: --------------- $opts['format'] = "d - F - Y H : i : s"; $opts['language'] = "pl"; $opts['minYear'] = "2001"; $form->addElement('date', 'data', 'Data rozpocz?cia dla cennika:', $opts); Expected result: ---------------- Year: 2003 Month: grudzie? Day: 09 Hour: 12 Minutes: 57 Seconds: 10 (for date 2003-12-09 12:57:10) Actual result: -------------- Year: 2003 Month: grudzie? Day: 09 Hour: 12 Minutes: 12 Seconds: 57 (for date 2003-12-09 12:57:10)

Comments

 [2003-12-09 12:20 UTC] avb
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.