PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #388

Incorrect date element's minutes and seconds assignment

Details

Submitted2003-12-09 12:08 UTC
Frommartel at post dot pl
Assignedavb
StatusClosed
PackageHTML_QuickForm
PHP Version4.3.4
OSLinux 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)