-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sonarcloud): use zoneinfo.ZoneInfo instead of pytz.timezone
fix SonarCloud code smell python:S6890: > Don't use `pytz` module with Python 3.9 and later. > "zoneinfo" should be preferred to "pytz" when using Python 3.9 and > later python:S6890 See rule: https://rules.sonarsource.com/python/RSPEC-6890/ Also: - Remove `pytz` dependency as unused - Update snapshots, see comment below **NOTE**: Times in snapshots changed because of difference between pytz.timezone and zoneinfo.ZoneInfo usage. See: - https://stackoverflow.com/questions/35462876/python-pytz-timezone-function-returns-a-timezone-that-is-off-by-9-minutes - https://stackoverflow.com/questions/75559676/pytz-and-zoneinfo-return-different-times-for-same-functions-whats-wrong-with-m - https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html It seems pytz was using local mean solar time which is not necessarily an integer hours offset from UTC, and using zoneinfo.ZoneInfo with "Europe/Helsinki" returned an integer hours offset from UTC. refs KK-1416
- Loading branch information
1 parent
82b09d2
commit d2937b8
Showing
12 changed files
with
1,941 additions
and
1,616 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ markdown | |
Pillow | ||
psycopg2 | ||
pycountry | ||
pytz | ||
qrcode | ||
requests | ||
sentry-sdk | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.