Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

DateTime.parseRfc822 seems lost TimeZone information #193

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 0 comments
Open

DateTime.parseRfc822 seems lost TimeZone information #193

GoogleCodeExporter opened this issue Apr 6, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I used gdata-java-client 1.38 for DateTime.parseRfc822() to help me parse a
rss element <pubDate />.

A pubDate string like "Sun, 06 Sep 2009 16:06:00 +0000" can be parsed but
not accepted by BaseEntry.setPublished(), method setPublished() throw the
exception message: "java.lang.IllegalArgumentException: Entry.published
must have a timezone."

The attached sample code shows DateTime.parseRfc822() maybe ignored
timezone information while parsing the date string.

Please check if it is a bug or not ?

Best Regards.

Ada.


Original issue reported on code.google.com by hungwei.hsu on 27 Sep 2009 at 2:36

Attachments:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant