From ff91bc9ad9ff0929f560e8c3bf468739ebca2259 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 21 Oct 2024 13:50:01 +0200 Subject: [PATCH] change TIME_ZONE for env variable --- dhub/settings.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dhub/settings.py b/dhub/settings.py index 8b77fd7..23ea1a6 100644 --- a/dhub/settings.py +++ b/dhub/settings.py @@ -132,11 +132,14 @@ AUTH_PASSWORD_VALIDATORS = [ LANGUAGE_CODE = "en-us" -TIME_ZONE = "UTC" +TIME_ZONE = config("TIME_ZONE", default="UTC") USE_I18N = True -USE_TZ = True +USE_TZ = False + +if TIME_ZONE == "UTC": + USE_TZ = True # Static files (CSS, JavaScript, Images)