Req #54210 [Bgs]: provide a function to canonicalize timezone strings
Edit report at http://bugs.php.net/bug.php?id=54210&edit=1
ID: 54210
Updated by: scottmac@php.net
Reported by: giorgio dot liscio at email dot it
Summary: provide a function to canonicalize timezone strings
Status: Bogus
Type: Feature/Change Request
Package: Date/time related
Operating System: all
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
$tz = implode('/', array_map('ucfirst', explode('/', $tz)));
No need to add a new function for this, and if the timezone is set by
your app
then you should probably store it in the correct format.
Previous Comments:
------------------------------------------------------------------------
[2011-03-10 07:16:21] scottmac@php.net
$tz = implode('/', array_map('ucfirst', explode('/', $tz)));
No need to add a new function for this, and if the timezone is set by
your app
then you should probably store it in the correct format.
------------------------------------------------------------------------
[2011-03-09 23:28:25] giorgio dot liscio at email dot it
Description:
------------
hi, it is needed a function that converts "europe/rome" in
"Europe/Rome"
for example the intl module (ICU) of php 5.3 does not accept
"europe/rome" as timezone, but only "Europe/Rome", with uppercase first
letters
thank you
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54210&edit=1
Thread (5 messages)