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

Fix comparison with TZ aware datetime in TimeLimit rule #43

Merged
merged 1 commit into from
Sep 7, 2019

Conversation

dhellmann
Copy link
Member

Depending on the string parsed, parsedate_to_datetime gives either a
timezone aware datetime or a timezone naive datetime.

To be able to compare them safely with the current date, this commit
makes sure that all datetimes used throughout the application are
TZ aware.

Depending on the string parsed, `parsedate_to_datetime` gives either a
timezone aware datetime or a timezone naive datetime.

To be able to compare them safely with the current date, this commit
makes sure that all datetimes used throughout the application are
TZ aware.
@dhellmann
Copy link
Member Author

This PR rebases #32

@jacques-cadet
Copy link
Contributor

Looks good.

@dhellmann dhellmann deleted the fix-time-limit-pr-32 branch September 12, 2019 13:29
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

3 participants