[Bugfix] Fix for the anonymous user’s timezone

It returned `None` instead of the application default.
This commit is contained in:
Gergely Polonkai 2018-07-08 22:50:41 +02:00
parent 7a39fca449
commit f392505441

View File

@ -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