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

From: Date: Thu, 09 Jun 2005 20:55:18 +0000
Subject: #33288 [Opn]: 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-80107@lists.php.net to get a copy of this message
ID: 33288 User updated by: henke at mac dot se -Summary: strtotime() error on dates ranging from 2006-05-01 to 2006-05-31 Reported By: henke at mac dot se Status: Open Bug Type: Date/time related Operating System: Win 2003 Server PHP Version: 5.0.4 New Comment: Only effects Swedish dates. i.e. '24 Maj 2006' Previous Comments: ------------------------------------------------------------------------ [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 (#80107) next »