|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #14561 strtotime() bug
Submitted: 2001-12-17 10:57 UTC Modified: 2005-06-28 23:11 UTC
From: wachters at iae dot nl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: Linux ?.?
Private report: No CVE-ID: None
 [2001-12-17 10:57 UTC] wachters at iae dot nl
strtotime("19:30 Dec 17"); // works okay
strtotime("Dec 17 19:30"); // returns -1

that's a bug i think. strangely enough the bug wasn't there in Php 4.0.5.. only in 4.0.6
gtx Bucky


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-18 07:12 UTC]
Can you try the latest CVS? There are some bugs fixed related to strtotime.
 [2001-12-18 07:15 UTC]
I could reproduce this with 4.1.0 and 4.2.0dev, it's not fixed.
But it's not a bug either, as strtotime does not understand every date syntax.
Making this s feature request.

 [2001-12-22 15:48 UTC]
You should better practice your type-changing skills ;)
 [2005-06-28 23:11 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Fixed in 5.1.0
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC