|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14568 strtotime giving wrong result
Submitted: 2001-12-17 16:29 UTC Modified: 2001-12-17 16:39 UTC
From: marc_bigler at yahoo dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.1.0 OS: Solaris 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: marc_bigler at yahoo dot com
New email:
PHP Version: OS:


 [2001-12-17 16:29 UTC] marc_bigler at yahoo dot com
I have just migrated from PHP 4.0.6 to PHP 4.1.0 and I have remarked that the strtotime() is now giving me false results. Look at the following code:

$date_string = "Sat, 15 Dec 2001 01:24:42 +0100 (CET)";
$date_ts = strtotime($date_string);
echo $date_ts;

With PHP 4.0.6 I get the following output (which is correct):


And with the new PHP 4.1.0 I get the following output:


Which is approxmiately 4-5 days wrong. 

If you need more info feel free to contact me... Thanks for fixing this.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-17 16:39 UTC]
Already fixed, and will be in the next release.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 03 02:03:41 2023 UTC