Bug #67438 [Opn->Nab]: datefmt_create returns null when using "Antarctica/Troll" timezone.

From: Date: Fri, 13 Jun 2014 17:13:47 +0000
Subject: Bug #67438 [Opn->Nab]: datefmt_create returns null when using "Antarctica/Troll" timezone.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186184@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67438&edit=1 ID: 67438 Updated by: aharvey@php.net Reported by: coeur dot guillaume at orange dot fr Summary: datefmt_create returns null when using "Antarctica/Troll" timezone. -Status: Open +Status: Not a bug Type: Bug -Package: Date/time related +Package: I18N and L10N related Operating System: Linux Fedora 20 (3.24.6-200) PHP Version: 5.5.13 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2014-06-13 14:59:04] mazzanet@php.net Recategorising as Bug instead of Doc Bug. ------------------------------------------------------------------------ [2014-06-13 13:50:13] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67438&edit=1

« previous php.bugs (#186184) next »