-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version #163
Comments
I tried to work on this feature by first adding support for Python 3.12 but I fail to get the tests running with it. First problem is in
I don't know how to fix this situation |
Oh great, thank you! I'm glad I stopped before investing too much time in this ^^ |
I'm struggling with the same HTTPS proxy issue as you document above, but hopefully will work it out soon! |
Good luck! (I have my own share of struggling, I know what this is ^^) |
Turns out pinning urllib3 to an older version for now resolves it! PR to switch to GitHub Actions CI is now open :) #164 |
Nope, it will trigger exceptions while doing math with Got bitten by it on a custom Filter I wrote on My current proposal is to revise all
This way, all current code will still get the expected behaviour, but users willing to cope with >= 3.12 can just add Eventually the naive
Will "automagically" convert all callers to aware |
Thanks for the suggestion, @Lisias! We went with something similar in the end - a |
Since Python 3.12, we have the following DeprecationWarning:
Pretty easy to fix in 3.12, but maybe not that easy in reality since you probably wanna maintain 2.7+ and 3.4+ support. I suggest to not use what the DeprecationWarning suggests but
datetime.datetime.now(tzinfo = datetime.tzinfo.UTC)
which should be OK (to be checked).The text was updated successfully, but these errors were encountered: