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

Preserve timezone info in date parsing #205

Merged
merged 1 commit into from
Aug 5, 2021
Merged

Preserve timezone info in date parsing #205

merged 1 commit into from
Aug 5, 2021

Conversation

AT0myks
Copy link
Contributor

@AT0myks AT0myks commented Aug 5, 2021

The current way of parsing dates ignores timezone information. Using email.utils.parsedate_to_datetime is simpler and preserves the timezone. Also time.mktime's argument is the time in local time, which is not what email.utils.parsedate returns because it simply ignores timezone data in the date string.

@martinrusev martinrusev merged commit 76763d5 into martinrusev:master Aug 5, 2021
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.

None yet

2 participants