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

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

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

decaz
Copy link
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

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
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
aio_pika/abc.py Outdated Show resolved Hide resolved
@decaz
Copy link
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
8 checks passed
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