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 2020-01-28 15:57:35 -08:00 committed by James Valleroy
parent 9cf84286f4
commit 4956a2a63a
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

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)