Doc->Bug #67438 [Opn]: datefmt_create returns null when using "Antarctica/Troll" timezone.
| From: | mazzanet@php.net | Date: | Fri, 13 Jun 2014 14:59:05 +0000 |
| Subject: | Doc->Bug #67438 [Opn]: datefmt_create returns null when using "Antarctica/Troll" timezone. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186181@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: mazzanet@php.net
Reported by: coeur dot guillaume at orange dot fr
Summary: datefmt_create returns null when using
"Antarctica/Troll" timezone.
Status: Open
-Type: Documentation Problem
+Type: Bug
Package: Date/time related
Operating System: Linux Fedora 20 (3.24.6-200)
PHP Version: 5.5.13
Block user comment: N
Private report: N
New Comment:
Recategorising as Bug instead of Doc Bug.
Previous Comments:
------------------------------------------------------------------------
[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