From 295e19198e71b3a4e2d92300c8aa1afb877d5bb6 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 9 Jul 2018 10:11:49 +0200 Subject: [PATCH] [Bugfix] Fix the default timezone setting --- calsocial/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calsocial/__init__.py b/calsocial/__init__.py index 8ceb9bd..bab8a8d 100644 --- a/calsocial/__init__.py +++ b/calsocial/__init__.py @@ -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)