Skip to content

Conversation

@athewsey
Copy link
Contributor

Issue #, if available: Fixes #18

Description of changes:

Reference the original datetime.timezone.utc constant instead of datetime.UTC which (per the linked doc) was only added in Python 3.11 so breaks our Python 3.10 support.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Constant alias `datetime.UTC` was only added in Python 3.11, so we
should reference the original `datetime.timezone.utc` to provide
(advertised) support for Python 3.10.
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.

datetime.UTC does not exist in Python 3.10

1 participant