Bug #68434 [Opn->Fbk]: wrong timezones for Russia

From: Date: Mon, 17 Nov 2014 13:39:17 +0000
Subject: Bug #68434 [Opn->Fbk]: wrong timezones for Russia
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188636@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68434&edit=1 ID: 68434 Updated by: ab@php.net Reported by: reaper at lmn dot name Summary: wrong timezones for Russia -Status: Open +Status: Feedback Type: Bug Package: Date/time related Operating System: win32 PHP Version: 5.6.3 Block user comment: N Private report: N New Comment: Please try the latest http://pecl.php.net/package/timezonedb (just load the dll). Thanks Previous Comments: ------------------------------------------------------------------------ [2014-11-17 11:43:20] reaper at lmn dot name Description: ------------ Timezones in php do not reflect the changes in russian timezones occured on 26th of October. For example, Moscow is now UTC+3 while php still thinks it's UTC+4, Yekaterinburg should be UTC+5 instead of UTC+6 and so on. Test script: --------------- <?php $formatter = IntlDateFormatter::create(NULL, NULL, NULL, "Europe/Moscow"); print_r($formatter->getTimeZone()); $formatter = IntlDateFormatter::create(NULL, NULL, NULL, "Etc/GMT-3"); print_r($formatter->getTimeZone()); ?> Expected result: ---------------- IntlTimeZone Object ( [valid] => 1 [id] => Europe/Moscow [rawOffset] => 10800000 [currentOffset] => 10800000 ) IntlTimeZone Object ( [valid] => 1 [id] => Etc/GMT-3 [rawOffset] => 10800000 [currentOffset] => 10800000 ) Actual result: -------------- IntlTimeZone Object ( [valid] => 1 [id] => Europe/Moscow [rawOffset] => 14400000 [currentOffset] => 14400000 ) IntlTimeZone Object ( [valid] => 1 [id] => Etc/GMT-3 [rawOffset] => 10800000 [currentOffset] => 10800000 ) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68434&edit=1

« previous php.bugs (#188636) next »