ID: 48341
Updated by: [email protected]
Reported By: aminm at fastmail dot fm
-Status: Open
+Status: Bogus
Bug Type: Date/time related
Operating System: Win32
PHP Version: 5.2.9
New Comment:
As a human, how would you interpret such string? I wouldn't know you
want it to be one WEEK ahead, I though you wanted one DAY ahead.. :)
So it's quite unfixable.
Previous Comments:
------------------------------------------------------------------------
[2009-05-20 03:12:50] aminm at fastmail dot fm
Description:
------------
$datetime1 = strtotime("June 06, 2009 10:00 AM");
$datetime2 = strtotime("+1 Saturday 10:00 AM", $datetime1);
$datetime1 and $datetime2 should be one week apart but they are equal
strtotime("next Saturday 10:00 AM", $datetime1) will work correctly
however.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48341&edit=1