I'm having a problem parsing short timezones with the pattern 'zzz'.
For example, the following code throws an IllegalArgumentException:
DateTimeFormatter formatter = DateTimeFormat.forPattern("HH:mm:ss zzz");
formatter.parseDateTime(formatter.print(new DateTime()));
java.lang.IllegalArgumentException: Invalid format: "10:40:00 PDT" is
malformed at "PDT"
at
org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:683)
at
proofpoint.rep.whois.WhoIsParserTest.testTimeParser(WhoIsParserTest.java:19)
I'm using joda-time-1.6.2.jar
Any idea what I'm doing wrong?
Thanks,
-dain
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest