#48341 [Opn->Bgs]: strtotime("+1 xxx") does not work correctly
| From: | jani@php.net | Date: | Wed, 20 May 2009 08:20:55 +0000 |
| Subject: | #48341 [Opn->Bgs]: strtotime("+1 xxx") does not work correctly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137551@lists.php.net to get a copy of this message | ||
ID: 48341
Updated by: jani@php.net
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