Skip to content

Conversation

@woutdenolf
Copy link
Contributor

datetime.UTC has only been introduced in python 3.11.

It is an alias for datetime.timezone.utc.

https://docs.python.org/3/library/datetime.html#datetime.UTC

datetime.timezone.utc works for all modern python versions (3.2 -> 3.13+).

@woutdenolf
Copy link
Contributor Author

Ping @lukaspie

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