Skip to content

Do not use deprecated datetime.utcnow and datetime.utcfromtimestamp#610

Merged
mosquito merged 2 commits intomosquito:masterfrom
decaz:fix-deprecation-warnings
Mar 1, 2024
Merged

Do not use deprecated datetime.utcnow and datetime.utcfromtimestamp#610
mosquito merged 2 commits intomosquito:masterfrom
decaz:fix-deprecation-warnings

Conversation

@decaz
Copy link
Copy Markdown
Collaborator

@decaz decaz commented Dec 28, 2023

This change can be breaking because timestamp of incoming message will now have timezone info (UTC by default).

Fixes #609.

@coveralls
Copy link
Copy Markdown

coveralls commented Dec 28, 2023

Coverage Status

coverage: 88.125% (+0.1%) from 88.024%
when pulling f0c7a81 on decaz:fix-deprecation-warnings
into 8804f3c on mosquito:master.

@decaz
Copy link
Copy Markdown
Collaborator Author

decaz commented Dec 28, 2023

Commit e966a96 may be reverted in the future when gmr/pamqp#51 will be released (if it will be merged).

@decaz decaz requested a review from mosquito December 28, 2023 19:27
Alviner
Alviner previously approved these changes Dec 28, 2023
Comment thread aio_pika/abc.py Outdated
@decaz
Copy link
Copy Markdown
Collaborator Author

decaz commented Jan 12, 2024

@mosquito gmr/pamqp#52 was merged and released within version 3.3.0. I think firstly aiormq should be upgraded to pamqp of this new version and after that I can remove commit e966a96 so this PR could be mergeable.

@decaz decaz requested a review from mosquito January 12, 2024 21:30
@mosquito mosquito merged commit cec1e08 into mosquito:master Mar 1, 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

Successfully merging this pull request may close these issues.

Deprecation warnings about datetime.utcnow and datetime.utcfromtimestamp

4 participants