Bug #18266: Wrong week output from date("W")

From: Date: Wed, 10 Jul 2002 20:46:20 +0000
Subject: Bug #18266: Wrong week output from date("W")
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13766@lists.php.net to get a copy of this message
From:             srabol@mail.tele.dk
Operating system: W2K
PHP version:      4.2.1
PHP Bug Type:     Date/time related
Bug description:  Wrong week output from date("W")

print date("d-m-Y",mktime(0,0,0,12,31,2002)) . " Week : " .
date("W",mktime(0,0,0,12,31,2002)) . "<br>";

The above line give this result:
31-12-2002 Week : 53

And according to my calendar there is no week 53 in year 2002
-- 
Edit bug report at http://bugs.php.net/?id=18266&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=18266&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=18266&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=18266&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=18266&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18266&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=18266&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=18266&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=18266&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=18266&r=globals



Thread (6 messages)

« previous php.bugs (#13766) next »