ID: 39026 Updated by: [EMAIL PROTECTED] Reported By: dbrong at gmail dot com -Status: Bogus +Status: Assigned Bug Type: Date/time related Operating System: Windows 2000 PHP Version: 5CVS-2006-10-03 (snap) Assigned To: derick New Comment:
Derick thinks he can fix this :) Previous Comments: ------------------------------------------------------------------------ [2006-10-05 16:07:43] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php When you are using 060901 format it is not possible to tell if the 2nd 2 characters represent the month or the day of the month. In certain locales day comes first in others the month, the format is ambiguous. ------------------------------------------------------------------------ [2006-10-03 14:57:38] dbrong at gmail dot com Description: ------------ I was using date("Y-m-d", strtotime("060901")) to produce a date formatted as "2006-09-01" and this does not work anymore in the latest PHP 5 release. It produces the actual date of the system's current time (2006-10-03 in this case). If I modify it as strtotime("20060901") it works fine. Reproduce code: --------------- date("Y-m-d", strtotime("060901")) will output the current system date (2006-10-03 in this case). Expected result: ---------------- 2006-10-03 (or the current date you run the script) Actual result: -------------- should be 2006-09-01 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39026&edit=1