php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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):

1008375882

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

1008019482

Which is approxmiately 4-5 days wrong. 

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

Regards

Patches

Pull Requests

History

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

Derick
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 10:01:30 2025 UTC