#37368 [Asn->Csd]: Incorrect timestamp returned for strtotime()
ID: 37368
Updated by: derick@php.net
Reported By: ramsey@php.net
-Status: Assigned
+Status: Closed
Bug Type: Date/time related
Operating System: Debian sarge
PHP Version: 5.1.4
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-05-08 17:16:01] ramsey@php.net
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
Thread (7 messages)