Bug #18266 Updated: Wrong week output from date("W")
| From: | rasmus@php.net | Date: | Wed, 10 Jul 2002 20:54:01 +0000 |
| Subject: | Bug #18266 Updated: Wrong week output from date("W") | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13767@lists.php.net to get a copy of this message | ||
ID: 18266
Updated by: rasmus@php.net
Reported By: srabol@mail.tele.dk
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: W2K
PHP Version: 4.2.1
New Comment:
According to the ISO date/time standards, Dec.31 2002 is indeed in week
53, so the output is correct.
Previous Comments:
------------------------------------------------------------------------
[2002-07-10 16:46:19] srabol@mail.tele.dk
print date("d-m-Y",mktime(0,0,0,12,31,2002)) . " Week : " .
date("W",mktime(0,0,0,12,31,2002)) . "<br>";
The above line give this result:
31-12-2002 Week : 53
And according to my calendar there is no week 53 in year 2002
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18266&edit=1