Bug #70840 [NEW]: timezone_identifiers_list() shows wrong city names for Ukraine

From: Date: Mon, 02 Nov 2015 16:52:32 +0000
Subject: Bug #70840 [NEW]: timezone_identifiers_list() shows wrong city names for Ukraine
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196979@lists.php.net to get a copy of this message
From:             serhiy dot shkolyarenko at gmail dot com
Operating system: any
PHP version:      7.0.0RC6
Package:          Date/time related
Bug Type:         Bug
Bug description:timezone_identifiers_list() shows wrong city names for Ukraine

Description:
------------
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:
----------------
...
Europe/Kyiv
...
Europe/Zaporizhia

Actual result:
--------------
...
Europe/Kiev
...
Europe/Zaporozhye

-- 
Edit bug report at https://bugs.php.net/bug.php?id=70840&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=70840&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=70840&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=70840&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=70840&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=70840&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=70840&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=70840&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=70840&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=70840&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=70840&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=70840&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=70840&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=70840&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70840&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=70840&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=70840&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=70840&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70840&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=70840&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=70840&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#196979) next »