|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-01-03 16:20 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 10:00:01 2025 UTC |
Description: ------------ strftime outputs wrong week number, 00 instead of 01. Used date("W", "1199314800"); as work around, which is correct. Reproduce code: --------------- <?php date("F j, Y, g:i a", "1199314800"); // output: January 3, 2008, 12:00 am strftime("%W", "1199314800"); // output: 00 ?> Expected result: ---------------- Week number should be 01 and not 00. Also the weeks after in 2008 the week numbers should be minus 1. Actual result: -------------- Counting starts at 00 instead of 01