Skip to content

fix: refactor datetime to remove deprecation warnings #1758

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

emmanuel-ferdman
Copy link
Contributor

PR Summary

This small PR fixes the datetime deprecation warnings which you can find in the CI logs:

DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    date_start = datetime.utcnow()

@emmanuel-ferdman
Copy link
Contributor Author

Hi @fabclmnt, can you please review this small PR when you get the chance? thanks 🙌

@fabclmnt
Copy link
Collaborator

@emmanuel-ferdman it seems that the changes are breaking the tests.

Can you please revise the code?

@emmanuel-ferdman
Copy link
Contributor Author

@fabclmnt looks like the CI is not stable - it passes locally and the logs don't show anything related to the PR changes.

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.

2 participants