From:             
Operating system: Win XP, Win 2003 Server
PHP version:      5.3SVN-2011-01-21 (SVN)
Package:          Date/time related
Bug Type:         Bug
Bug description:IntlDateFormatter class does not support Asia/Kathmandu

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 bug report at http://bugs.php.net/bug.php?id=53804&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53804&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53804&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53804&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53804&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53804&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53804&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53804&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53804&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53804&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53804&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53804&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53804&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53804&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53804&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53804&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53804&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53804&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53804&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53804&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53804&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53804&r=mysqlcfg

Reply via email to