From f392505441aed0a1b91120837563039b13680760 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 8 Jul 2018 22:50:41 +0200 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20Fix=20for=20the=20anonymous=20user?= =?UTF-8?q?=E2=80=99s=20timezone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It returned `None` instead of the application default. --- calsocial/security.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calsocial/security.py b/calsocial/security.py index 2fcdcbf..7c9310a 100644 --- a/calsocial/security.py +++ b/calsocial/security.py @@ -17,6 +17,7 @@ """Security related things for Calendar.social """ +from flask import current_app from flask_security import Security, AnonymousUser as BaseAnonymousUser security = Security() @@ -31,4 +32,4 @@ class AnonymousUser(BaseAnonymousUser): """The time zone of the anonymous user """ - return None + return current_app.timezone