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

Add allowance for optional seconds and handle invalid hour in time #95

Merged

Conversation

andrewtimberlake
Copy link
Collaborator

While parsing 10,000 emails I came across a problem with emails that had a single digit hour in their timestamp.
When re-reading the spec I saw that, while the hour is supposed to be 2 digit, the seconds are optional so I have updated the parser to allow for both.

@bcardarella bcardarella merged commit c76667c into DockYard:master Jun 14, 2019
@andrewtimberlake andrewtimberlake deleted the bug/rfc-2822-date-parsing branch June 14, 2019 11:56
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