|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2013-12-07 07:30 UTC] elliottpost at gmail dot com
 
-Status: Open
+Status: Closed
  [2013-12-07 07:30 UTC] elliottpost at gmail dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Description: ------------ Strtotime() is producing unusual numbering whether running on a server or a fresh install on localhost without modifying php.ini. Example given in the docs is "10 September 2000". strtotime("10 September 2000") works; however, it is a day off. I thought this is due to time zone issues, but when trying the below script it produces a result of December 12, 2000. More than 24 hours off--doesn't seem possible just because of time zones. The higher you go up, the further off it gets--but some work okay. I can't explain it, but I've listed a few samples below. Test script: --------------- <?php echo date( "F n, Y", strtotime( "10 September 2000") ); //prints September 9, 2000 echo date( "F n, Y", strtotime( "10 December 2000") ); //prints December 12, 2000 echo date( "F n, Y", strtotime( "25 December 2013") ); //prints December 12, 2013 echo date( "F n, Y", strtotime( "2014-12-25") ); //prints December 12, 2013 echo date( "F n, Y", strtotime( "2014-05-05") ); //prints May 5, 2014 ?> Expected result: ---------------- I expected the time to be formatted correctly. Actual result: -------------- Please see the test-script...I've added comments by each echo statement.