Revert "First steps into pytz deprecation"

This reverts commit e4e7d50659.
This commit is contained in:
Raphael Michel
2023-02-01 13:15:18 +01:00
parent e4e7d50659
commit 59d46ddded
63 changed files with 362 additions and 341 deletions

View File

@@ -35,7 +35,7 @@
import string
from datetime import date, datetime, time
import pytz_deprecation_shim
import pytz
from django.conf import settings
from django.core.mail import get_connection
from django.core.validators import MinLengthValidator, RegexValidator
@@ -140,7 +140,7 @@ class Organizer(LoggedModel):
@property
def timezone(self):
return pytz_deprecation_shim.timezone(self.settings.timezone)
return pytz.timezone(self.settings.timezone)
@cached_property
def all_logentries_link(self):