#18770 [NEW]: Wrong ISO-8601 week number

From: Date: Wed, 07 Aug 2002 08:21:15 +0000
Subject: #18770 [NEW]: Wrong ISO-8601 week number
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16124@lists.php.net to get a copy of this message
From: henrie.cuijpers@zonnet.nl Operating system: Win2k PHP version: 4.2.1 PHP Bug Type: Date/time related Bug description: Wrong ISO-8601 week number 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 bug report at http://bugs.php.net/?id=18770&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18770&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18770&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18770&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18770&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18770&r=support Expected behavior: http://bugs.php.net/fix.php?id=18770&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18770&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18770&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18770&r=globals

« previous php.bugs (#16124) next »