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

Copy link
Contributor

@PeterC-DLS PeterC-DLS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@woutdenolf woutdenolf merged commit 215bb9c into main Jan 7, 2026
3 checks passed
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.

3 participants