#28024 [Ver->Asn]: Changed behavior of strtotime()

From: Date: Fri, 16 Apr 2004 20:33:33 +0000
Subject: #28024 [Ver->Asn]: Changed behavior of strtotime()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58275@lists.php.net to get a copy of this message
ID: 28024 Updated by: derick@php.net Reported By: lars at jvinformatik dot com -Status: Verified +Status: Assigned Bug Type: Date/time related Operating System: Linux PHP Version: 4CVS, 5CVS (2004-04-16) -Assigned To: +Assigned To: derick New Comment: Will have a look at this one too. Previous Comments: ------------------------------------------------------------------------ [2004-04-16 15:06:20] sniper@php.net Indeed. ------------------------------------------------------------------------ [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

« previous php.bugs (#58275) next »