|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-11-17 13:39 UTC] ab@php.net
-Status: Open
+Status: Feedback
[2014-11-17 13:39 UTC] ab@php.net
[2014-11-17 13:40 UTC] ab@php.net
[2014-11-17 17:42 UTC] ab@php.net
[2014-11-17 18:54 UTC] reaper at lmn dot name
[2014-11-17 23:31 UTC] ab@php.net
-Status: Feedback
+Status: Closed
-Assigned To:
+Assigned To: ab
[2014-11-17 23:31 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 07:00:02 2025 UTC |
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 )