Bug #68434 [Fbk->Csd]: wrong timezones for Russia
| From: | ab@php.net | Date: | Mon, 17 Nov 2014 23:31:42 +0000 |
| Subject: | Bug #68434 [Fbk->Csd]: wrong timezones for Russia | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188648@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: Feedback
+Status: Closed
Type: Bug
Package: Date/time related
Operating System: win32
PHP Version: 5.6.3
-Assigned To:
+Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Thanks for the update. The data at least should be updated in the next release.
Previous Comments:
------------------------------------------------------------------------
[2014-11-17 18:54:37] reaper at lmn dot name
Yes, new icu dll helped and result is as expected.
------------------------------------------------------------------------
[2014-11-17 17:42:02] ab@php.net
I've rebuilt the data DLLs with the updated TZ http://windows.php.net/downloads/snaps/ostc/68434/icu_tz_update/2014j/
. Please try one, whether it fixes the TZ issue and doesn't break anything else. This is
probably the only solution as long as we don't upgrade ICU.
Thanks.
------------------------------------------------------------------------
[2014-11-17 13:40:26] ab@php.net
Ah, nevermind ... that's not datetime but intl.
------------------------------------------------------------------------
[2014-11-17 13:39:17] ab@php.net
Please try the latest http://pecl.php.net/package/timezonedb (just load
the dll).
Thanks
------------------------------------------------------------------------
[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