Add support for setting timezone in config.yaml

This commit is contained in:
Oliver Walters committed 2020-10-08 21:02:38 +11:00
1 parent 26ee3032f6
commit 3d60bccae0
2 files changed
+6 -2

No files matched your search

+1 -2
View File
@@ -355,8 +355,7 @@ LOCALE_PATHS = (
os.path.join(BASE_DIR, 'locale/'),
)
TIME_ZONE = 'UTC'
TIME_ZONE = CONFIG.get('timezone', 'UTC')
USE_I18N = True
+5
View File
@@ -21,6 +21,11 @@ database:
# Select default system language (default is 'en-us')
language: en-us
# System time-zone (default is UTC)
# Reference: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# Select an option from the "TZ database name" column
timezone: UTC
# Set debug to False to run in production mode
debug: True