From 3cc5db7ad1076280fb340157281f52a010266e85 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 2 Dec 2021 14:44:37 +0700 Subject: [PATCH] use TZ environ for scheduler --- docker-compose.yml | 1 + tubearchivist/config/settings.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 859febef..736a3f35 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,6 +18,7 @@ services: - TA_USERNAME=tubearchivist - TA_PASSWORD=verysecret - ELASTIC_PASSWORD=verysecret + - TZ=America/New_York depends_on: - archivist-es - archivist-redis diff --git a/tubearchivist/config/settings.py b/tubearchivist/config/settings.py index b2f485d6..8324c89e 100644 --- a/tubearchivist/config/settings.py +++ b/tubearchivist/config/settings.py @@ -116,7 +116,7 @@ AUTH_USER_MODEL = "home.Account" # https://docs.djangoproject.com/en/3.2/topics/i18n/ LANGUAGE_CODE = "en-us" -TIME_ZONE = "UTC" +TIME_ZONE = environ.get("TZ") or "UTC" USE_I18N = True USE_L10N = True USE_TZ = True