From e6526d3fd457fa015038d96640ba75a05247022d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 7 Jan 2017 15:12:45 -0800 Subject: [PATCH] Make timezone configurable --- paperless.conf.example | 3 +++ src/paperless/settings.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/paperless.conf.example b/paperless.conf.example index 3fb6ceb4b..2e7a79745 100644 --- a/paperless.conf.example +++ b/paperless.conf.example @@ -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 + diff --git a/src/paperless/settings.py b/src/paperless/settings.py index e90099ae3..4dcfd0ab1 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -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