#33288 [Opn->Bgs]: strtotime() error on dates ranging from 2006-05-01 to 2006-05-31 with Swedish.

From: Date: Thu, 09 Jun 2005 21:09:02 +0000
Subject: #33288 [Opn->Bgs]: strtotime() error on dates ranging from 2006-05-01 to 2006-05-31 with Swedish.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80108@lists.php.net to get a copy of this message
ID: 33288 Updated by: derick@php.net Reported By: henke at mac dot se -Status: Open +Status: Bogus Bug Type: Date/time related Operating System: Win 2003 Server PHP Version: 5.0.4 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2005-06-09 22:55:17] henke at mac dot se Only effects Swedish dates. i.e. '24 Maj 2006' ------------------------------------------------------------------------ [2005-06-09 22:45:07] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33288&edit=1

« previous php.bugs (#80108) next »