ID: 48105
User updated by: migue dot m at gmail dot com
Reported By: migue dot m at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Calendar related
Operating System: Windows XP SP3
PHP Version: 5.2.9
New Comment:
I'm stupid, sorry, the ISO-8601 say that 2009 HAVE 53 weeks.
Previous Comments:
------------------------------------------------------------------------
[2009-04-29 10:57:47] migue dot m at gmail dot com
Description:
------------
I use this code to calculate the week number for December 28 of 2009:
strftime("%V", mktime(12,0,0,12,28,$x));
This function have to return "1" but it returns "53" and the 2009 year
hasn't 53 weeks.
I also tried other code with the same results:
date('W', strtotime("December 28, $x"));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48105&edit=1