use TZ environ for scheduler

This commit is contained in:
simon 2021-12-02 14:44:37 +07:00
parent 7e97284374
commit 3cc5db7ad1
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ services:
- TA_USERNAME=tubearchivist - TA_USERNAME=tubearchivist
- TA_PASSWORD=verysecret - TA_PASSWORD=verysecret
- ELASTIC_PASSWORD=verysecret - ELASTIC_PASSWORD=verysecret
- TZ=America/New_York
depends_on: depends_on:
- archivist-es - archivist-es
- archivist-redis - archivist-redis

View File

@ -116,7 +116,7 @@ AUTH_USER_MODEL = "home.Account"
# https://docs.djangoproject.com/en/3.2/topics/i18n/ # https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = "en-us" LANGUAGE_CODE = "en-us"
TIME_ZONE = "UTC" TIME_ZONE = environ.get("TZ") or "UTC"
USE_I18N = True USE_I18N = True
USE_L10N = True USE_L10N = True
USE_TZ = True USE_TZ = True