-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix AttributeError 'zoneinfo.ZoneInfo' object has no attribute 'local…
…ize' Pytz is being deprecated and since Django 4.0 it now returns zoneinfo objects instead of pytz objects. This fix replaces the usage of .localize (which exists on pytz objects) with a .replace call (which is the way to do the same action on regular datetime objects now). Docs Reference: https://docs.djangoproject.com/en/5.1/releases/4.0/#zoneinfo-default-timezone-implementation Fixes crashes on personal tab transactions pages, as well as anywhere else in the code where the .localize function was used.
- Loading branch information
Showing
3 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
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