Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation Warning in serialization.py #182

Open
VMRuiz opened this issue Feb 21, 2025 · 0 comments · May be fixed by #183
Open

Deprecation Warning in serialization.py #182

VMRuiz opened this issue Feb 21, 2025 · 0 comments · May be fixed by #183

Comments

@VMRuiz
Copy link

VMRuiz commented Feb 21, 2025

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant