Merge pull request #1037 from SchrodingersGat/tz-support

Add support for setting timezone in config.yaml
This commit is contained in:
Oliver 2020-10-08 21:35:36 +11:00 committed by GitHub
commit ca8472ac23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

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

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