From b72697b819bb4a0d506b58765776a29212ae7e9c Mon Sep 17 00:00:00 2001 From: Howard Wilson <17737+watsonbox@users.noreply.github.com> Date: Wed, 28 Aug 2024 22:57:15 +0200 Subject: [PATCH] Allow use of standard docker `TZ` env var (#765) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Allow use of standard docker TZ env var * use getenv api --------- Co-authored-by: Sascha Ißbrücker --- siteroot/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/siteroot/settings/base.py b/siteroot/settings/base.py index 641471f..6c3a705 100644 --- a/siteroot/settings/base.py +++ b/siteroot/settings/base.py @@ -114,7 +114,7 @@ LOGOUT_REDIRECT_URL = "/" + LD_CONTEXT_PATH + "login" LANGUAGE_CODE = "en-us" -TIME_ZONE = "UTC" +TIME_ZONE = os.getenv("TZ", "UTC") USE_I18N = True