Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for timezones in Mojo::Date #228

Closed
wants to merge 1 commit into from

Conversation

Akron
Copy link
Contributor

@Akron Akron commented Oct 5, 2011

Although RFC2616 (http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3) is strict regarding GMT timezones, it notes, that "Recipients of date values are encouraged to be robust in accepting date values that may have been sent by non-HTTP applications". In my opinion, that says implementers SHOULD support consumption of non-gmt date values (for example in rfc-822), while they are not allowed to through out anything non-gmt like.

This patch supports literal time zones as specified in RFC-822 without the incorrectly introduced military timezones. This patch does not support alpha-numeric offsets.

Real world example: I discovered this issue when parsing BoingBoing.net RSS. RSS supports RFC-822, so I expected a RFC-2616 compliant parser to accept it, but it failed.

@kraih kraih closed this Oct 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants