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
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.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2022 The PHP Group
All rights reserved.
Last updated: Sun May 29 03:03:49 2022 UTC