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 RssItem.pubDate to DateTime #22

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

alexandergottlieb
Copy link
Contributor

Hi, hope you're open to pull requests?

This changes the type of RssItem.pubDate from String to DateTime, saving end developers from having to learn how RSS dates are stored and write their own parser.

It should be particularly helpful as pubDate conforms to RFC 822 instead of ISO 8601, meaning you can't simply use DateTime.parse().

This will be a breaking API change, I've updated the relevant tests to validate against DateTime objects instead of strings.

@alexandergottlieb alexandergottlieb changed the title parse pubDate to DateTime parse RssItem.pubDate to DateTime Nov 6, 2019
@witochandra witochandra merged commit 3ed572a into witochandra:master Aug 11, 2020
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