Edit report at https://bugs.php.net/bug.php?id=45081&edit=1

 ID:                 45081
 Comment by:         php at synotna dot org
 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:

Probable workaround? http://pecl.php.net/package/timezonedb


Previous Comments:
------------------------------------------------------------------------
[2013-05-30 00:43:57] sdf at fake-email-address dot com

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.

------------------------------------------------------------------------
[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] der...@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

Reply via email to