-
-
Notifications
You must be signed in to change notification settings - Fork 863
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
Switch to zoneinfo from pytz #7645
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7645 +/- ##
==========================================
+ Coverage 85.24% 85.33% +0.08%
==========================================
Files 1175 1175
Lines 52424 52430 +6
Branches 2075 2078 +3
==========================================
+ Hits 44691 44740 +49
+ Misses 7226 7180 -46
- Partials 507 510 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Nice. Should we also remove pytz from the requirements? |
@SchrodingersGat sadly not, some of our dependencies still depend on it |
I need to figure out why CI works on my machine but not on GH |
This is more complex than initially thought. https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html |
Wow, what a deep dive! |
@matmair it would be great to get this one closed out if you have some time to assign to it :) |
@SchrodingersGat this is more a skill not a time issue ;-) I can look into it after sso and selection lists |
Ok, LMK if you are banging your head against the wall on it! |
…switch-pytz
…switch-pytz
@SchrodingersGat can you take a look at this? Especially the change in the test assertations. Maybe I am missing something but the previous assertations seem strangely off by a few minutes. |
…switch-pytz
To add some specific discussions of this to add to your link above: Long story short, using For what it's worth, your updated test values are correct from my manual checking on: https://dateful.com/time-zone-converter |
@SchrodingersGat ready for review and merge; I have marked it as breaking as a precaution, I do not think it should break anything |
@matmair seems like a minimal change overall, in the end. Thank you for looking into this one. |
We target 3.9 which has zoneinfo for timezone info instead of pytz.