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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!