#48105 [NEW]: The number of weeks in 2009 are 52, not 53

From: Date: Wed, 29 Apr 2009 10:57:47 +0000
Subject: #48105 [NEW]: The number of weeks in 2009 are 52, not 53
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-136498@lists.php.net to get a copy of this message
From: migue dot m at gmail dot com Operating system: Windows XP SP3 PHP version: 5.2.9 PHP Bug Type: Calendar related Bug description: The number of weeks in 2009 are 52, not 53 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 bug report at http://bugs.php.net/?id=48105&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48105&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48105&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48105&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48105&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48105&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48105&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48105&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48105&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48105&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48105&r=support Expected behavior: http://bugs.php.net/fix.php?id=48105&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48105&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48105&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48105&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48105&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48105&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48105&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48105&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48105&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48105&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48105&r=mysqlcfg

« previous php.bugs (#136498) next »