cvs: pear /HTML_QuickForm/QuickForm date.php

From: Date: Fri, 14 Nov 2003 18:41:38 +0000
Subject: cvs: pear /HTML_QuickForm/QuickForm date.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-14275@lists.php.net to get a copy of this message
avb Fri Nov 14 13:41:38 2003 EDT Modified files: /pear/HTML_QuickForm/QuickForm date.php Log: Fixed a bug in setValue(), spotted by Mike Carter Index: pear/HTML_QuickForm/QuickForm/date.php diff -u pear/HTML_QuickForm/QuickForm/date.php:1.36 pear/HTML_QuickForm/QuickForm/date.php:1.37 --- pear/HTML_QuickForm/QuickForm/date.php:1.36 Sun Nov 2 13:12:06 2003 +++ pear/HTML_QuickForm/QuickForm/date.php Fri Nov 14 13:41:37 2003 @@ -18,7 +18,7 @@ // | Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: date.php,v 1.36 2003/11/02 18:12:06 mansion Exp $ +// $Id: date.php,v 1.37 2003/11/14 18:41:37 avb Exp $ require_once 'HTML/QuickForm/group.php'; require_once 'HTML/QuickForm/select.php'; @@ -50,6 +50,7 @@ * F => Long names of months * m => Month numbers * Y => Four digit year + * y => Two digit year * h => 12 hour format * H => 23 hour format * i => Minutes @@ -333,7 +334,7 @@ { if (!is_array($value)) { // might be a unix epoch, then we fill all possible values - $arr = explode('-', date('w-d-n-Y-y-h-H-i-s-a-A', (int)$value)); + $arr = explode('-', date('w-d-n-Y-h-H-i-s-a-A', (int)$value)); $value = array( 'D' => $arr[0], 'l' => $arr[0],

« previous php.pear.cvs (#14275) next »