|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72233 IntlDateFormatter uses bad timezone data for Russia
Submitted: 2016-05-17 18:38 UTC Modified: 2016-05-18 11:46 UTC
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: mateusz dot m dot nowaczyk at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: intl (PECL)
PHP Version: Irrelevant OS: Debian, RHEL, Ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mateusz dot m dot nowaczyk at gmail dot com
New email:
PHP Version: OS:


 [2016-05-17 18:38 UTC] mateusz dot m dot nowaczyk at gmail dot com
How to reproduce: create a DateTime object $dateTime with value of year 2015 (haven't tested other years), set any Russian timezone (e.g. Europe/Moscow), check the result of $dateTime->format('H:i') and compare with result of IntlDateFormatter::format with the same timezone. 
Problem exists in versions 5.6.20+dfsg-0+deb8u1 (debian jessie), 5.4.45 (CentOS) and 7.0.4 (Ubuntu). There was a similar bug (68434), marked as closed with a comment stating that "the data at least should be updated in the next release." Well, it certainly should, since 2014.

Test script:
$now = new \DateTime();
$russian = new\DateTimeZone('Europe/Moscow');
$fmt = new IntlDateFormatter(
echo $now->format('Y-m-d H:i:s');
echo $fmt->format($now);

Expected result:
2016-05-17 21:26:38
Tuesday, May 17, 2016 at 09:26:38 PM Moscow Standard Time

Actual result:
2016-05-17 21:26:38
Tuesday, May 17, 2016 at 10:26:38 PM Moscow Standard Time


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-05-18 11:46 UTC]
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2016-05-18 11:46 UTC]
This is not a bug in PHP (see <>), but
rather a configuration/system issue. On Linux systems the PHP intl
extension is build against the ICU library of the system, and
obviously, your system has a somewhat old version. You can check
which ICU version and ICU Data version you're running with:

  php -i | grep ICU
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Mar 30 23:01:24 2020 UTC