Home » HTML » HTML_QuickForm » Bug #388
Incorrect date element's minutes and seconds assignment
Details
| 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) |
Comments
[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)