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

Parse all RSS and ATOM dates permissively #56

Merged
merged 1 commit into from
Jun 7, 2018

Conversation

GarthSnyder
Copy link
Collaborator

The existing FeedKit code is pretty strict about date formats, so quite possibly you'll be horrified by the very idea of this patch. Nevertheless, I do see quite a few ISO-format dates showing up in RSS feeds.

This patch liberalizes XML date parsing by attempting RFC822, RFC3339, and ISO8601 decoding on every date field rather than limiting each field to its specified format. RFC822 is different enough, and the other two are similar enough, that there should be no difference in the result except that some dates that were previously rejected will now be interpreted correctly.

@nmdias nmdias merged commit b2dea73 into nmdias:master Jun 7, 2018
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