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

DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. #3337

Open
ianna opened this issue Dec 10, 2024 · 0 comments · May be fixed by #3338
Assignees
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged

Comments

@ianna
Copy link
Collaborator

ianna commented Dec 10, 2024

Version of Awkward Array

2.6.9

Description and code to reproduce

Python 3.12.2

The update is needed for

build_date = datetime.datetime.utcfromtimestamp(

build_date = datetime.datetime.utcfromtimestamp(

to timezone-aware objects:

/awkward/dev/generate-tests.py:22: 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).
  build_date = datetime.datetime.utcfromtimestamp(
@ianna ianna added the bug (unverified) The problem described would be a bug, but needs to be triaged label Dec 10, 2024
@ianna ianna self-assigned this Dec 10, 2024
@ianna ianna linked a pull request Dec 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant