|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-10 18:33 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 04:00:02 2025 UTC |
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