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 #3379

Support weeks (W) in date-selector

Details

Request #3379Support weeks (W) in date-selector
Submitted2005-02-04 14:52 UTC
Fromivar dot bonsaksen at escio dot no
StatusClosed
PackageHTML_QuickForm
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-02-04 14:52 UTC] ivar dot bonsaksen at escio dot no

Description:
------------
Support selects with week-numbers

Reproduce code:
---------------
Requires:

1 - a new case in date.php somewhere around line 250(+-)
case 'W':
$options = $this->_createOptionList(1, 53);
break;

2 - the letter 'W' added to the list on line 360
$arr = explode('-', date('w-d-n-Y-h-H-i-s-a-A-W', (int)$value));

3 - the letter 'W' added to the value array on line 361 (With the number corresponding to the position of the letter 'W' in the list on line 360)
'W' => $arr[10]