ID:               43738
 Updated by:       [EMAIL PROTECTED]
 Reported By:      timon at xploreweb dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: RHEL 4ES, WinXP SP2
 PHP Version:      5.2.5
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

" %W - week number of the current year as a decimal number, starting
with the first Monday as the first day of the first week"

The first Monday in the year is the 7th.


Previous Comments:
------------------------------------------------------------------------

[2008-01-03 16:10:06] timon at xploreweb dot com

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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43738&edit=1

Reply via email to