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
Fixed #32366 -- Updated datetime module usage to recommended approach. #13916
Conversation
Using .now() is the modern recommended approach. https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow More depth here: https://blog.ganssle.io/articles/2019/11/utcnow.html
Can we update all cases and tests ?
|
Yep, good call. I'll do that later on. |
Can you also address |
Ok, super. I'm touching the methods using those now so... I think I'll add a ticket. |
🏅
Good call. |
I think The biggest "legitimate" use case I have for
Anyway, these are fairly rare use cases and any instance of |
Thanks @pganssle. I ran out of brain power for this this afternoon but will look at each of the uses to see what we can update. |
Superseded by #14374. |
Using .now() is the modern recommended approach.
https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow
More depth here:
https://blog.ganssle.io/articles/2019/11/utcnow.html
Extracted from #13877