Skip to content

Fix deprecation warnings for datetime.datetime.utcnow #1025

@soapy1

Description

@soapy1

Context

datetime.datetime.utcnow is deprecated after python 3.10. It should be replaced with datetime.datetime.now(datetime.UTC). Once we drop python 3.10 support, we will be able to replace all instances of datetime.datetime.utcnow() with datetime.datetime.now(datetime.UTC).

Follow up to #1013

Value and/or benefit

  • Fixes deprecation warnings 🔧

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress 🏗

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions