Bug #67077 [NEW]: Error timezone offset when trying to set the time zone EET

From: Date: Tue, 15 Apr 2014 06:20:26 +0000
Subject: Bug #67077 [NEW]: Error timezone offset when trying to set the time zone EET
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185251@lists.php.net to get a copy of this message
From: dvb2504 at gmail dot com Operating system: Linux PHP version: 5.5.11 Package: Date/time related Bug Type: Bug Bug description:Error timezone offset when trying to set the time zone EET Description: ------------ When trying to set the time zone EET, we got offset +2 but expext +3. The bug is in all versions since 5.5.10. http://3v4l.org/0M1S9#v542 Test script: --------------- <?php date_default_timezone_set('EET'); $date = new DateTime(); var_dump($date); $date->setTimezone(new DateTimeZone('EET')); var_dump($date); Expected result: ---------------- object(DateTime)#1 (3) { ["date"]=> string(19) "2014-04-09 12:23:44" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "EET" } object(DateTime)#1 (3) { ["date"]=> string(19) "2014-04-09 12:23:44" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "EET" } Actual result: -------------- object(DateTime)#1 (3) { ["date"]=> string(19) "2014-04-09 12:23:44" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "EET" } object(DateTime)#1 (3) { ["date"]=> string(19) "2014-04-09 11:23:44" ["timezone_type"]=> int(2) ["timezone"]=> string(3) "EET" } -- Edit bug report at https://bugs.php.net/bug.php?id=67077&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67077&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67077&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67077&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67077&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67077&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67077&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67077&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67077&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67077&r=support Expected behavior: https://bugs.php.net/fix.php?id=67077&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67077&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67077&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67077&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67077&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67077&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67077&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67077&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67077&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67077&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67077&r=mysqlcfg

« previous php.bugs (#185251) next »