Edit report at http://bugs.php.net/bug.php?id=53804&edit=1

 ID:                 53804
 Updated by:         [email protected]
 Reported by:        belfilie at ie dot ibm dot com
 Summary:            IntlDateFormatter class does not support
                     Asia/Kathmandu
 Status:             Open
 Type:               Bug
 Package:            Date/time related
 Operating System:   Win XP, Win 2003 Server
 PHP Version:        5.3SVN-2011-01-21 (SVN)
 Block user comment: N
 Private report:     N

 New Comment:

I realize it might be a bit confusing but IntlDateFormatter actually
uses ICU 

timezones, not PHP timezones. Those are supposed to be the same, since
both derive 

from CLDR timezone database, but if you have an old ICU library, it may
fall 

behind. Unfortunately, there's not other way around it but upgrading you
ICU 

library.


Previous Comments:
------------------------------------------------------------------------
[2011-01-21 15:58:42] belfilie at ie dot ibm dot com

Description:
------------
The version of PHP is 5.3.2



We are using the IntlDateFormatter library and have noticed that if we
pass as timezone 'Asia/Katmandu' it works correctly and resolves it to
Nepal time, however it does not recognize 'Asia/Kathmandu' as a valid
Olsen timezone.



According to this page (http://php.net/manual/en/timezones.asia.php)
both spellings are recognized by PHP and according to this page
(http://www.oracle.com/technetwork/java/javase/tzdata-versions-138805.html)
Java has included a change from Katmandu to Kathmandu in its 1.4
release.



Will Asia/Kathmandu be supported by this library?



Thanks

Test script:
---------------
Just create a new instance of the IntlDateFormatter class, and pass in
"Asia/Kathmandu" as its last parameter (the timezone). By comparison,
try also passing in "Asia/Katmandu".

Expected result:
----------------
As a temporary workaround we have put in a little hack so we test the
value of the timezone and if it's equal to 'Asia/Kathmandu' we replace
it with 'Asia/Katmandu'. But ideally the library should support both
spellings!



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53804&edit=1

Reply via email to