php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
Description:
------------
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');
var_dump($fmt);

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

Actual result:
--------------
null

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-13 14:59 UTC] mazzanet@php.net
-Type: Documentation Problem +Type: Bug
 [2014-06-13 14:59 UTC] mazzanet@php.net
Recategorising as Bug instead of Doc Bug.
 [2014-06-13 17:13 UTC] aharvey@php.net
-Status: Open +Status: Not a bug -Package: Date/time related +Package: I18N and L10N related
 [2014-06-13 17:13 UTC] aharvey@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC