|  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
 [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: Mon Jun 05 21:03:37 2023 UTC