mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
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:
parent
9cf84286f4
commit
4956a2a63a
@ -160,7 +160,9 @@ def init():
|
|||||||
'captcha-refresh',
|
'captcha-refresh',
|
||||||
),
|
),
|
||||||
TEMPLATES=templates,
|
TEMPLATES=templates,
|
||||||
|
TIME_ZONE='UTC',
|
||||||
USE_L10N=True,
|
USE_L10N=True,
|
||||||
|
USE_TZ=True,
|
||||||
USE_X_FORWARDED_HOST=cfg.use_x_forwarded_host)
|
USE_X_FORWARDED_HOST=cfg.use_x_forwarded_host)
|
||||||
django.setup(set_prefix=True)
|
django.setup(set_prefix=True)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user