-
-
Notifications
You must be signed in to change notification settings - Fork 833
[18.0][FIX] bi_sql_editor: Replace deprecated datetime.utcnow()
#1020
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
Conversation
Hi @legalsylvain, |
@legalsylvain sorry for the mess on previous PR - GitHub didn't let me change the target branch. Should be good now 😄 |
And please follow commit message guidelines: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message |
@legalsylvain @legalsylvain - fixed PR to only contain |
The commit message is still incorrect. |
datetime.utcnow()
@pedrobaeza is it ok now? |
Use timezone-aware datetime methods to resolve deprecation warnings. Signed-off-by: Emmanuel Ferdman <[email protected]>
@pedrobaeza I see what you mean. fixed now. thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ocabot merge patch
On my way to merge this fine PR! |
Congratulations, your PR was merged at 96c0eac. Thanks a lot for contributing to OCA. ❤️ |
[FIX] bi_sql_editor: Replace deprecated
datetime.utcnow()
Replace deprecated
datetime.utcnow()
with timezone-aware equivalentdatetime.now(timezone.utc)
to resolve Python 3.12+ deprecation warnings.Affected files: