Skip to content

Replace datetime.utcnow() with datetime.now(timezone.utc) #5367

@suhaibmujahid

Description

@suhaibmujahid

datetime.utcnow() is deprecated in Python 3.12+. Replace with datetime.now(timezone.utc) which is timezone-aware and follows current best practices.

Originally posted by @Copilot in #5366 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions