Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

DateTime.parseRfc822 seems lost TimeZone information #193

@GoogleCodeExporter

Description

@GoogleCodeExporter
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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions