|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-18 11:15 UTC] rquadling@php.net
[2009-11-19 12:16 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 08:00:01 2025 UTC |
Description: ------------ The documentation claims that strtotime assumes US-English format; however, when the fields are separated with dashes, it reverts to UK-English format. Reproduce code: --------------- $ICDate = "05-01-2012"; //actual code read from a file $ICtimestamp = strtotime($ICDate); $date = date ("F jS, Y", $ICtimestamp); print $date; //actual code parsed through a template to display on a webpage Expected result: ---------------- "May 1st, 2012" Actual result: -------------- "January 5th, 2012"