Skip to content

Deprecation Warning in serialization.py #182

Open
@VMRuiz

Description

@VMRuiz

The following line of code is triggering a deprecation warning:

EPOCH = datetime.utcfromtimestamp(0)

DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. 
Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).

According to the message, the recommended fix is to use timezone-aware objects with datetime.datetime.fromtimestamp(timestamp, datetime.UTC).

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