Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a4

Bug #470 weekOfYear - wrong result
Submitted: 2003-12-20 23:07 UTC
From: yyyy at stod dot de Assigned:
Status: Bogus Package: Date
PHP Version: 4.3.4 OS: win xp
Roadmaps: (Not assigned)    

 [2003-12-20 23:07 UTC] yyyy at stod dot de
Description: ------------ "weekOfYear" will produce wrong results. echo "Heutiges Datum KW: ".$DateTest->weekOfYear($DateTest->dateNow("22,12,2003")); produces: 51 Regards Ben Reproduce code: --------------- echo "Heutiges Datum KW: ".$DateTest->weekOfYear($DateTest->dateNow("22,12,2003")); Expected result: ---------------- Result should be: 52 if your week begins on monday.


 [2003-12-21 13:25 UTC] pajoye
Thank you for taking the time to report a problem with the package. Unfortunately you are not using a current version of the package -- the problem might already be fixed. Please download a new version from If you are able to reproduce the bug with one of the latest versions, please change the package version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PEAR. Cannot reproduce and works with latest release (1.4RC1 beta)