Skip to content

Python3≥3.12 Deprecated datatime.utcnow() #978

@realzhipeng

Description

@realzhipeng

Hello,

When use it in python3.12, and 3.13, I meet "DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC)."

I checked the https://docs.python.domainunion.de/3/library/datetime.html, they told me that this function is not present anymore. could you update the package?

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