|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67438 datefmt_create returns null when using "Antarctica/Troll" timezone.
Submitted: 2014-06-13 13:50 UTC Modified: 2014-06-13 17:13 UTC
From: coeur dot guillaume at orange dot fr Assigned:
Status: Not a bug Package: I18N and L10N related
PHP Version: 5.5.13 OS: Linux Fedora 20 (3.24.6-200)
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: coeur dot guillaume at orange dot fr
New email:
PHP Version: OS:


 [2014-06-13 13:50 UTC] coeur dot guillaume at orange dot fr
My PHP version is actualy 5.5.12 (not 5.5.13, but I wasn't able to select this version on the list).

It seems that some timezone (at least Antarctica/Troll) are not working with the datefmt_create function.

Test script:
$fmt = datefmt_create('en_UK', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Antarctica/Troll', IntlDateFormatter::GREGORIAN, 'Y-MM-dd HH:mm:ss');

Expected result:
something like
object(IntlDateFormatter)#xx (0) { }

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-13 14:59 UTC]
-Type: Documentation Problem +Type: Bug
 [2014-06-13 14:59 UTC]
Recategorising as Bug instead of Doc Bug.
 [2014-06-13 17:13 UTC]
-Status: Open +Status: Not a bug -Package: Date/time related +Package: I18N and L10N related
 [2014-06-13 17:13 UTC]
ICU (which the intl classes use) bundles its own copy of the time zone database and uses that, so although PHP 5.5.12 and later support Antarctica/Troll (which was added earlier this year), your copy of ICU probably doesn't at this point.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 03 20:01:24 2020 UTC