#47431 [NEW]: Documentation misleading about time format

From: Date: Wed, 18 Feb 2009 01:42:21 +0000
Subject: #47431 [NEW]: Documentation misleading about time format
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1895@lists.php.net to get a copy of this message
From: yamikuronue at gmail dot com Operating system: Windows XP running apache PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Documentation misleading about time format 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" -- Edit bug report at http://bugs.php.net/?id=47431&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47431&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47431&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47431&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47431&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47431&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47431&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47431&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47431&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47431&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47431&r=support Expected behavior: http://bugs.php.net/fix.php?id=47431&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47431&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47431&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47431&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47431&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47431&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47431&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47431&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47431&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47431&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47431&r=mysqlcfg

« previous php.doc.bugs (#1895) next »