Skip to content

TST: Bump pytz to 2023.3.post1#25629

Merged
rgommers merged 1 commit intonumpy:mainfrom
QuLogic:bump-pytz
Jan 19, 2024
Merged

TST: Bump pytz to 2023.3.post1#25629
rgommers merged 1 commit intonumpy:mainfrom
QuLogic:bump-pytz

Conversation

@QuLogic
Copy link
Copy Markdown
Contributor

@QuLogic QuLogic commented Jan 19, 2024

This version fixes the DeprecationWarning in Python 3.12 (which becomes an error in pytest):

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

This version fixes the DeprecationWarning in Python 3.12:
```
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).
```
Copy link
Copy Markdown
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank @QuLogic

@rgommers rgommers added this to the 2.0.0 release milestone Jan 19, 2024
@rgommers rgommers merged commit 72879d3 into numpy:main Jan 19, 2024
@QuLogic QuLogic deleted the bump-pytz branch January 19, 2024 11:27
@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Jan 19, 2024
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants