Skip to content

Update datetime module as datetime.datetime.utcfromtimestamp() is deprecated#147

Merged
dlenski merged 1 commit intodtcooper:masterfrom
roboes:update-datetime-module
Jan 28, 2025
Merged

Update datetime module as datetime.datetime.utcfromtimestamp() is deprecated#147
dlenski merged 1 commit intodtcooper:masterfrom
roboes:update-datetime-module

Conversation

@roboes
Copy link
Contributor

@roboes roboes commented Jan 25, 2025

This pull request addresses the deprecation warning related to datetime.datetime.utcfromtimestamp(), which is scheduled for removal in a future version of Python. The utcfromtimestamp() method is replaced with datetime.datetime.fromtimestamp() using datetime.timezone.utc to ensure that the datetime objects are timezone-aware and comply with the updated recommendations in Python's documentation.

@roboes
Copy link
Contributor Author

roboes commented Jan 28, 2025

@dtcooper: Could you please review and approve this pull request? Thanks a lot!

@dlenski dlenski merged commit d88bb69 into dtcooper:master Jan 28, 2025
0 of 6 checks passed
@roboes roboes deleted the update-datetime-module branch January 28, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants