PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #3547

Default value didn't set for element 'date' in case of format 'Y'

Details

Submitted2005-02-21 18:31 UTC
Frompgolovin at inbox dot ru
StatusWont fix
PackageHTML_QuickForm
PHP Version4.3.10
OSFreeBSD
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)) {