#33992 [Opn->Bgs]: strtotime("sunday") on last week reports wrong year

From: Date: Thu, 04 Aug 2005 07:05:24 +0000
Subject: #33992 [Opn->Bgs]: strtotime("sunday") on last week reports wrong year
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-82935@lists.php.net to get a copy of this message
 ID:               33992
 Updated by:       sniper@php.net
 Reported By:      wim dot delvaux at adaptiveplanet dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: linux debian SID
 PHP Version:      4.3.11
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.




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

[2005-08-04 05:16:02] 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=33992&edit=1


Thread (2 messages)

« previous php.bugs (#82935) next »