ID:               33993
 Updated by:       [EMAIL PROTECTED]
 Reported By:      wim dot delvaux at adaptiveplanet dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Date/time related
 Operating System: linux debian SID
 PHP Version:      4.3.11
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in PHP 5.1, won't fix in PHP 4.


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

[2005-08-04 05:16:24] wim dot delvaux at adaptiveplanet dot com

Description:
------------
strftime( "%A %e %B %G",$FY_FirstDayOfWeek) 
 
prints monday 26 december 2005 
 
which is correct, however 
 
strftime( "%A %e %B %G",strtotime("sunday",
$FY_FirstDayOfWeek)) 
 
prints  
 
zondag 1 januari 2005 
 
which should be 2006 no ?? 

Reproduce code:
---------------
strftime( "%A %e %B %G",$FY_FirstDayOfWeek) 
strftime( "%A %e %B %G",strtotime("sunday",$FY_FirstDayOfWeek))

and set $FY_FirstDayOfWeek to monday 26 december 2005

Expected result:
----------------
that the year 2006 is returned  



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


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

Reply via email to