Edit report at https://bugs.php.net/bug.php?id=70840&edit=1

  ID: 70840
  Updated by: rasmus@php.net
  Reported by: serhiy dot shkolyarenko@gmail.com
  Summary: timezone_identifiers_list() shows wrong city names
                      for Ukraine
-Status: Open
+Status: Analyzed
  Type: Bug
  Package: Date/time related
  Operating System: any
  PHP Version: 7.0.0RC6
  Block user comment: N
  Private report: N

  New Comment:

Fixing this in PHP doesn't really help since we just use the IANA database. Next time we sync with the upstream release your changes will disappear. If you want this changed you should head over to http://www.iana.org/time-zones and file an issue with them. However, in the file you find there you will see this:

# Zaporozh'ye and eastern Lugansk oblasts observed DST 1990/1991.
# "Zaporizhia" is the transliteration of the Ukrainian name, but
# "Zaporozh'ye" is more common in English. Use the common English
# spelling, except omit the apostrophe as it is not allowed in
# portable Posix file names.
Zone Europe/Zaporozhye 2:20:40 - LMT 1880
             2:20 - CUT 1924 May 2 # Central Ukraine T
             2:00 - EET 1930 Jun 21
             3:00 - MSK 1941 Aug 25
             1:00 C-Eur CE%sT 1943 Oct 25
             3:00 Russia MSK/MSD 1991 Mar 31 2:00
             2:00 E-Eur EE%sT 1995
             2:00 EU EE%sT

So someone has thought about this and deliberately chose to call it Zaporozhye

We really don't want to divert from the official IANA designated identifiers as these are used by pretty much everything.

Previous Comments:
[2015-11-05 19:35:45] marcosptf@yahoo.com dot br

hello to everyone!

i've trying to resolve this bug, i did a PR to github, i don't know if correct, but to my mind this is way and i did first in my computer before commit.

let's waint someone answer the PR to see, whats the next steps!

[2015-11-02 16:52:32] serhiy dot shkolyarenko@gmail.com

Method DateTimeZone::listIdentifiers(DateTimeZone::EUROPE, 'UA') shows Ukrainian cities transliterated from russian, not from ukrainian, so it doesn't correspond official names.

Error is spotted for Kyiv(http://www.local-life.com/kiev/articles/kiev-or-kyiv) and Zaporizhia(https://en.wikipedia.org/wiki/Zaporizhia). Uzhgorod and Simferopol are OK because have the same transliteration for russian and ukrainian.

Checked for PHP versions 5.6.11 and 7.0.0-RC6.

Test script:
var_dump(DateTimeZone::listIdentifiers(DateTimeZone::EUROPE, 'UA'));

Expected result:

Actual result:


Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 3 | next ›
Discussion Overview
groupphp-bugs @
postedNov 5, '15 at 7:35p
activeNov 7, '15 at 4:30p



site design / logo © 2018 Grokbase