java - ICU parsing date with timezone -


i'm parsing using icu:

dateformat formatter = new simpledateformat("hh:mm z"); date date = formatter.parse("10:33 pst");            

this throws

java.text.parseexception: unparseable date: "10:33 pst" 

however, "10:33 gmt" parses well.

icu.timezone knows pst. run

system.out.println(timezone.gettimezone("pst").getdisplayname()); 

and get

pacific time 

when use java.text, works fine.

please help


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -