|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-06-09 22:45 UTC] henke at mac dot se
Description:
------------
Using strtotime() funktion on dates between 2006-05-01 to
2006-05-30 always returns -1.
This issue only affects May dates in 2006 which is weird.
Reproduce code:
---------------
strtotime('24 May 2006 0:00');
Tested only with swedish localisation so you could try
setlocale(LC_TIME,'swedish');
strtotime('24 Maj 2006 0:00');
Expected result:
----------------
A unix timestamp
Actual result:
--------------
-1
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 00:00:01 2025 UTC |
strtotime doesn't care about locales, and it won't work. Using the english name works fine here: <?php echo strtotime('24 May 2006 0:00'); ?> 1148421600