#33288 [NEW]: strtotime() error on dates ranging from 2006-05-01 to 2006-05-31
| From: | henke at mac dot se | Date: | Thu, 09 Jun 2005 20:45:07 +0000 |
| Subject: | #33288 [NEW]: strtotime() error on dates ranging from 2006-05-01 to 2006-05-31 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-80106@lists.php.net to get a copy of this message | ||
From: henke at mac dot se
Operating system: Win 2003 Server
PHP version: 5.0.4
PHP Bug Type: Date/time related
Bug description: strtotime() error on dates ranging from 2006-05-01 to 2006-05-31
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 bug report at http://bugs.php.net/?id=33288&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33288&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33288&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33288&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33288&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33288&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33288&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33288&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33288&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33288&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33288&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33288&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33288&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33288&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33288&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33288&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33288&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33288&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33288&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33288&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33288&r=mysqlcfg