web_framework: Set the timezone to UTC

This is needed to ensure that all the time/date values stored in the database
are UTC. A timezone change in the settings should not make the database values
inconsistent.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2020-02-10 18:13:01 -05:00
1 parent 9cf84286f4
commit 4956a2a63a
1 file changed
+2
+2
View File
@@ -160,7 +160,9 @@ def init():
'captcha-refresh',
),
TEMPLATES=templates,
TIME_ZONE='UTC',
USE_L10N=True,
USE_TZ=True,
USE_X_FORWARDED_HOST=cfg.use_x_forwarded_host)
django.setup(set_prefix=True)