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

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

Merged
merged 1 commit into from
Jan 28, 2025

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants