ID:               22889
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ulrich dot staerk at spe-siemens dot de
 Status:           Open
 Bug Type:         Date/time related
 Operating System: Windows 2000
 PHP Version:      4.3.1
 New Comment:

This seems to be (yet another) case of Window's c library not following
standards.  Linux and BSD are both reporting correctly for me.


Previous Comments:
------------------------------------------------------------------------

[2003-03-26 08:57:36] ulrich dot staerk at spe-siemens dot de

there also seems to be a week number 1 from december 22, 2003 to
january 4, 2004. i think this is an overall problem happening
everywhere the first week is not completely in the new year or the last
week not completely in the last year...

------------------------------------------------------------------------

[2003-03-26 02:55:34] ulrich dot staerk at spe-siemens dot de

date("W",mktime(0,0,0,1,1,2005)) returns "1" where it should return
"53" because January 1st and 2nd still belong to the last week of 2004.
In an earlier version of php (4.2.3) on the same machine it simply
returned "0" which was wrong too but could be corrected within my
script.
This bug appears also in January 2006, 2010 (there seems to be an
10-day-long first week :-) ) and so on.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22889&edit=1

Reply via email to