Edit report at https://bugs.php.net/bug.php?id=45081&edit=1
ID: 45081 Updated by: ahar...@php.net 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: That file is autogenerated from timezonedb, I believe. Previous Comments: ------------------------------------------------------------------------ [2013-06-10 06:57:38] sdf at fake-email-address dot com If only it were.. ext/date/lib/parse_date.c: /* The timezone table. */ const static timelib_tz_lookup_table timelib_timezone_lookup[] = { #include "timezonemap.h" { NULL, 0, 0, NULL }, }; ext/date/lib/timezonemap.h: { "acst", 1, -14400, "America/Porto_Acre" }, { "acst", 1, -14400, "America/Eirunepe" }, { "acst", 1, -14400, "America/Rio_Branco" }, { "acst", 1, -14400, "Brazil/Acre" }, { "act", 0, -18000, "America/Porto_Acre" }, etc. All hard coded. ------------------------------------------------------------------------ [2013-05-31 13:46:45] der...@php.net Timezonedb is used for strtotime. ------------------------------------------------------------------------ [2013-05-30 23:44:24] sdf at fake-email-address dot com Unfortunately not. The offsets are hard coded into PHP, timezonedb is not used for strtotime. ------------------------------------------------------------------------ [2013-05-30 08:38:54] php at synotna dot org Probable workaround? http://pecl.php.net/package/timezonedb ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=45081 -- Edit this bug report at https://bugs.php.net/bug.php?id=45081&edit=1