Bug #45081 [Com]: strtotime incorrectly interprets SGT time zone
| From: | sdf at fake-email-address dot com | Date: | Thu, 30 May 2013 00:43:57 +0000 |
| Subject: | Bug #45081 [Com]: strtotime incorrectly interprets SGT time zone | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179217@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=45081&edit=1
ID: 45081
Comment by: sdf at fake-email-address dot com
Reported by: george dot wright at infimatic dot com
Summary: strtotime incorrectly interprets SGT time zone
Status: Assigned
Type: Bug
Package: Date/time related
Operating System: SUSE 10.2
PHP Version: 5.2.6
Assigned To: derick
Block user comment: N
Private report: N
New Comment:
Any update on this?
I'm using PHP 5.3.3-7+squeeze15 with timezonedb 2013.3 and SGT is still off by 30
minutes.
Previous Comments:
------------------------------------------------------------------------
[2008-05-23 17:43:24] george dot wright at infimatic dot com
Correct, my copy/paste mistake. Ant ETA on a fix?
------------------------------------------------------------------------
[2008-05-23 16:42:04] derick@php.net
There is an issue here, but the expected result is:
1211472000
1211472000
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=45081&edit=1