Home » HTML » HTML_QuickForm » Bug #3379
Support weeks (W) in date-selector
Details
| Request #3379 | Support weeks (W) in date-selector |
|---|---|
| Submitted | 2005-02-04 14:52 UTC |
| From | ivar dot bonsaksen at escio dot no |
| Status | Closed |
| Package | HTML_QuickForm |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| 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]