ID: 37368
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Assigned
Bug Type: Date/time related
Operating System: Debian sarge
PHP Version: 5.1.4
-Assigned To:
+Assigned To: derick
Previous Comments:
------------------------------------------------------------------------
[2006-05-08 17:16:01] [EMAIL PROTECTED]
Description:
------------
When using strtotime() in PHP 5.1.4, it returns an inaccurate
timestamp, but PHP 5.0.4 and 4.4.2 return the correct timestamp.
Reproduce code:
---------------
php -r 'echo date("r", strtotime("Mon, 08 May 2006 13:06:44 -0400 +30
days"));'
Expected result:
----------------
Wed, 07 Jun 2006 13:06:44 -0400
Actual result:
--------------
Mon, 12 Jun 2006 13:06:44 -0400
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37368&edit=1