ID: 43555 Updated by: [EMAIL PROTECTED] Reported By: tim dot kay at mailshack dot com -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Windows 2003 SP2 PHP Version: 5.2.5 New Comment:
strtotime() is not locale dependent, and simply not all formats are supported-the UK date format is one of those apparently. Some functionality to parse formats with a given format might follow in the future. Previous Comments: ------------------------------------------------------------------------ [2007-12-10 16:47:03] tim dot kay at mailshack dot com Description: ------------ strtotime does not parse a date in UK format properly. Server locale (in Windows) is set to English (United Kingdom) in all places configurable. The following line of code: echo setlocale(LC_ALL, ''); Comes back with the following result: English_United Kingdom.1252 I am running Apache 2.2.6. Reproduce code: --------------- $mydate = strtotime("20/11/2007"); echo $mydate."<br/>"; echo date("Y-M-d h:i:s", $mydate); Expected result: ---------------- 1195516800 2007-Nov-20 12:00:00 Actual result: -------------- 1970-Jan-01 01:00:00 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43555&edit=1