Small fix for the anonymous user’s time zone #31

Merged
gergely merged 1 commits from anon-timezone-fix into master 2018-07-08 23:02:22 +02:00
Showing only changes of commit f392505441 - Show all commits

View File

@ -17,6 +17,7 @@
"""Security related things for Calendar.social """Security related things for Calendar.social
""" """
from flask import current_app
from flask_security import Security, AnonymousUser as BaseAnonymousUser from flask_security import Security, AnonymousUser as BaseAnonymousUser
security = Security() security = Security()
@ -31,4 +32,4 @@ class AnonymousUser(BaseAnonymousUser):
"""The time zone of the anonymous user """The time zone of the anonymous user
""" """
return None return current_app.timezone