Home » HTML » HTML_QuickForm » Bug #3547
Default value didn't set for element 'date' in case of format 'Y'
Details
| Submitted | 2005-02-21 18:31 UTC |
|---|---|
| From | pgolovin at inbox dot ru |
| Status | Wont fix |
| Package | HTML_QuickForm |
| PHP Version | 4.3.10 |
| OS | FreeBSD |
| Roadmaps | (Not assigned) |
Comments
[2005-02-21 18:31 UTC] pgolovin at inbox dot ru
Description:
------------
Default value didn't set for element 'date' in case of format 'Y'. In function setValue() in this case four-digit value for Year using as timestamp.
Temporary solution:
insert
if($this->_options['format']=='Y')
$value=$value."-01-01";
before
if (!is_numeric($value)) {