#45081 [NEW]: strtotime incorrectly interprets SGT time zone

From: Date: Fri, 23 May 2008 15:39:51 +0000
Subject: #45081 [NEW]: strtotime incorrectly interprets SGT time zone
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125216@lists.php.net to get a copy of this message
From: george dot wright at infimatic dot com Operating system: SUSE 10.2 PHP version: 5.2.6 PHP Bug Type: Date/time related Bug description: strtotime incorrectly interprets SGT time zone Description: ------------ Our server is set up for Asia/Singapore time OS date command prints: Fri May 23 22:29:19 SGT 2008 Running the following code should produce the same result since the default timezone is SGT but it doesn't. Updating the timezonedb.so file to version 2008.2 (the newest available version) did not fix the problem. Reproduce code: --------------- <?php print strtotime('2008-05-23 00:00:00 SGT'); print "<br>"; print strtotime('2008-05-23 00:00:00'); ?> Expected result: ---------------- 1211473800 1211473800 Actual result: -------------- 1211473800 1211472000 -- Edit bug report at http://bugs.php.net/?id=45081&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45081&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45081&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45081&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45081&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45081&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45081&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45081&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45081&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45081&r=support Expected behavior: http://bugs.php.net/fix.php?id=45081&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45081&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45081&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45081&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45081&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45081&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45081&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45081&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45081&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45081&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45081&r=mysqlcfg

« previous php.bugs (#125216) next »