Skip to content

datetime.utcnow() is deprecated: stop using it #2572

@jku

Description

@jku

utcnow() reference docs:

Deprecated since version 3.12: Use datetime.now() with UTC instead.

We have 23 uses of utcnow() (mostly tests and examples): all seem straight forward to change to now() with utc argument

Metadata

Metadata

Assignees

Labels

good first issueBite-sized items for first time contributors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions