|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-15 08:50 UTC] derick@php.net
[2006-02-24 10:45 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
Description: ------------ Specifiying a date in the format 31/12/2005 fails to parse however the American format 12/31/2005 works. This works in PHP 5.0.4 on Solaris 8 but no longer works with the strtotime() changes in 5.1.2. Some more testing revealed that various formats do not work when the day precedes the month e.g. 31-12-2005 that used to work in 5.0.4. (We are aware that this does not necessarily produce sensible results e.g. strtotime("31/12/2005") != strtotime("12/31/2005") even in 5.0.4 although it seems that it should at least still *work* in the same way...) If you need any more information please let me know. Reproduce code: --------------- <?php print strtotime("31/12/2005"); ?> Expected result: ---------------- 1184162400 Actual result: -------------- nothing