[Bugfix] Fix the default timezone setting

This commit is contained in:
Gergely Polonkai 2018-07-09 10:11:49 +02:00
parent d14d32767c
commit 295e19198e

View File

@ -124,7 +124,7 @@ class CalendarSocialApp(Flask):
return utc
if not self._timezone:
timezone_str = current_app.settings.get('DEFAULT_TIMEZONE', 'UTC')
timezone_str = current_app.config.get('DEFAULT_TIMEZONE', 'UTC')
try:
self._timezone = timezone(timezone_str)