#45081 [Opn->Asn]: strtotime incorrectly interprets SGT time zone

From: Date: Fri, 23 May 2008 16:42:04 +0000
Subject: #45081 [Opn->Asn]: strtotime incorrectly interprets SGT time zone
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125218@lists.php.net to get a copy of this message
ID: 45081 Updated by: derick@php.net Reported By: george dot wright at infimatic dot com -Status: Open +Status: Assigned Bug Type: Date/time related Operating System: SUSE 10.2 PHP Version: 5.2.6 -Assigned To: +Assigned To: derick New Comment: There is an issue here, but the expected result is: 1211472000 1211472000 Previous Comments: ------------------------------------------------------------------------ [2008-05-23 15:39:51] george dot wright at infimatic dot com 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 this bug report at http://bugs.php.net/?id=45081&edit=1

« previous php.bugs (#125218) next »