#18770 [Opn->Csd]: Wrong ISO-8601 week number
| From: | eru@php.net | Date: | Wed, 07 Aug 2002 08:41:03 +0000 |
| Subject: | #18770 [Opn->Csd]: Wrong ISO-8601 week number | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16129@lists.php.net to get a copy of this message | ||
ID: 18770
Updated by: eru@php.net
Reported By: henrie.cuijpers@zonnet.nl
-Status: Open
+Status: Closed
Bug Type: Date/time related
Operating System: Win2k
PHP Version: 4.2.1
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-08-07 04:21:15] henrie.cuijpers@zonnet.nl
2 examples: Try:
date("W",mktime (0,0,0,12,31,2001)) gives week 53.
This should be week 1 of year 2002.
date("W",mktime (0,0,0,1,2,2000)) gives week 0.
This should be week 52 of year 1999.
So:
1) the weeknumber is not correct
2) you should also be able to get the iso Year because this can be
different from the year.
I hope this helps in getting a better world....
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18770&edit=1