#39912 [Asn->Bgs]: date('W') returns wrong week number for some dates
| From: | derick@php.net | Date: | Wed, 20 Dec 2006 22:36:28 +0000 |
| Subject: | #39912 [Asn->Bgs]: date('W') returns wrong week number for some dates | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106704@lists.php.net to get a copy of this message | ||
ID: 39912
Updated by: derick@php.net
Reported By: pkus at epf dot pl
-Status: Assigned
+Status: Bogus
Bug Type: Date/time related
Operating System: windows xp
PHP Version: 5.2.0
Assigned To: derick
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Please read the description of "ISO Week date" at
http://en.wikipedia.org/wiki/ISO_week_date
Previous Comments:
------------------------------------------------------------------------
[2006-12-20 20:33:01] pkus at epf dot pl
Description:
------------
bug was reported earlier and closed
Bug #33957 gmdate('W')/date('W') sometimes returns wrong week
number.
Reproduce code:
---------------
print_r(date('W', mktime(0,0,0,12,31,2007)));
//returns 01 but should return 53
Expected result:
----------------
//returns 01 but should return 53
Actual result:
--------------
01
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39912&edit=1