php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12656 strtotime started to malfunction after OS change
Submitted: 2001-08-08 12:48 UTC Modified: 2001-08-08 16:09 UTC
From: lecoq_tr at hotmail dot com Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.6 OS: Red Hat 7.1
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: lecoq_tr at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-08-08 12:48 UTC] lecoq_tr at hotmail dot com
Example code :
print strtotime("Tue Aug  7 18:48:28 2001");

This sample code format used to work properly in all PHP releases this year when we used Red Hat 6.2. It could give the proper timestamp.

But after upgrading to Red Hat 7.1, this code only gives "-1". I always use the same "configure" options when compiling. I run PHP as Apache module.

I have to take the first 11 characters of the etring to calculate the timestamp, but it is not precise without time and year information.

What do I do to have this code work properly again?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-08 16:09 UTC] alindeman@php.net
try...

print strtotime("Tue Aug 7 2001 18:48:28");
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 13:01:28 2024 UTC