Make timezone configurable

This commit is contained in:
Eric Wong 2017-01-07 15:12:45 -08:00
parent bee0867a2a
commit e6526d3fd4
2 changed files with 4 additions and 1 deletions

View File

@ -102,3 +102,6 @@ PAPERLESS_SHARED_SECRET=""
# as is "example.com,www.example.com", but NOT " example.com" or "example.com,"
#PAPERLESS_ALLOWED_HOSTS="example.com,www.example.com"
# Override the default UTC time zone here
#PAPERLESS_TIME_ZONE=America/Los_Angeles

View File

@ -157,7 +157,7 @@ AUTH_PASSWORD_VALIDATORS = [
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
TIME_ZONE = os.getenv("PAPERLESS_TIME_ZONE", "UTC")
USE_I18N = True