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

Remove deprecated datetime.datetime.utcfromtimestamp #834

Closed
07pepa opened this issue Jun 11, 2024 · 1 comment
Closed

Remove deprecated datetime.datetime.utcfromtimestamp #834

07pepa opened this issue Jun 11, 2024 · 1 comment

Comments

@07pepa
Copy link

07pepa commented Jun 11, 2024

This is not a bug but should be addressed and is in source code so i will skip usual i have latest pendulum installed

Issue

https://github.com/sdispater/pendulum/blob/3e3fec6a5b66759078c5ae39c736ca95b78adbef/src/pendulum/__init__.py#L295
_datetime.datetime.utcfromtimestamp has been deprecated since 3.12 see https://docs.python.org/3/library/datetime.html#datetime.datetime.utcfromtimestamp

its replacement is datetime.fromtimestamp and did not see any changes since python 3.6 this is supporting 3.8+ so migration should be easy https://docs.python.org/3/library/datetime.html#datetime.datetime.fromtimestamp

@edgarrmondragon
Copy link
Contributor

This is clearly a duplicate of #830

@Secrus Secrus closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
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

No branches or pull requests

3 participants