diff --git a/.env.example b/.env.example index 6b80205..dfe49c0 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,8 @@ SERVER_NAME=wygiwyh_server DB_NAME=wygiwyh_pg +TZ=UTC # Change to your timezone. This only affects some async tasks. + DEBUG=false URL = https://... HTTPS_ENABLED=true diff --git a/app/WYGIWYH/settings.py b/app/WYGIWYH/settings.py index c3ca8d7..c725d32 100644 --- a/app/WYGIWYH/settings.py +++ b/app/WYGIWYH/settings.py @@ -166,7 +166,7 @@ LANGUAGES = ( ("pt-br", "Português (Brasil)"), ) -TIME_ZONE = "UTC" +TIME_ZONE = os.getenv("TZ", "UTC") USE_I18N = True