From:             ulrich dot staerk at spe-siemens dot de
Operating system: Windows 2000
PHP version:      4.3.1
PHP Bug Type:     Date/time related
Bug description:  date doesn't return correct number of week

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 bug report at http://bugs.php.net/?id=22889&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22889&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22889&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22889&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22889&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22889&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22889&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22889&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22889&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22889&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22889&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22889&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22889&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22889&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22889&r=gnused

Reply via email to