#28024 [Opn->Ver]: Changed behavior of strtotime()
| From: | sniper@php.net | Date: | Fri, 16 Apr 2004 19:06:20 +0000 |
| Subject: | #28024 [Opn->Ver]: Changed behavior of strtotime() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58266@lists.php.net to get a copy of this message | ||
ID: 28024
Updated by: sniper@php.net
Reported By: lars at jvinformatik dot com
-Status: Open
+Status: Verified
Bug Type: Date/time related
Operating System: Linux
-PHP Version: 4.3.6RC3
+PHP Version: 4CVS, 5CVS (2004-04-16)
New Comment:
Indeed.
Previous Comments:
------------------------------------------------------------------------
[2004-04-16 10:30:57] lars at jvinformatik dot com
Description:
------------
The new version of strtotime fails to parse some strings that worked in
previous versions.
strtotime("17:00 2004-01-01") used to return 1072972800 in PHP 4.2.0
but returns -1 in 4.3.6.
If the order of the string is reversed to "2004-01-01 17:00" it works
fine in 4.3.6 so it's really not that serious, but it probably will
break some old applications that use the incorrect order.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28024&edit=1