ID:               37940
 User updated by:  devans14 at gmail dot com
 Reported By:      devans14 at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: Windows XP Pro w/SP2
 PHP Version:      5.1.4
 New Comment:

Please disregard this bug report.
I actually had PHP 5.0.5 installed and not 5.1.4.
Once I installed 5.1.4 the bug was obviously not present.

Thank you


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

[2006-06-28 02:17:16] devans14 at gmail dot com

Description:
------------
When trying to find strtotime("last Sunday", $DATE) it will sometimes
generate a date on a Saturday instead of a Sunday, but only happens
around the 1st week of April of any year (I tested 2006-2010).


Reproduce code:
---------------
<?php
$a=strtotime("20060403");
$b=strtotime("last Sunday", $a);
echo date("Y/m/d", $b);
?>


Expected result:
----------------
2006/04/02



Actual result:
--------------
2006/04/01

A Saturday



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


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

Reply via email to