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
Post a Comment