Commit 22e48bd7 by Jim Abramson

Merge pull request #29 from edx/jsa/timezone

explicitly set TIME_ZONE for django
parents 38ae08ff 1cd8baae
...@@ -23,7 +23,6 @@ INSTALLED_APPS = ( ...@@ -23,7 +23,6 @@ INSTALLED_APPS = (
SERVICE_NAME = 'notifier' SERVICE_NAME = 'notifier'
# Misc. Notifier Formatting # Misc. Notifier Formatting
FORUM_DIGEST_EMAIL_SENDER = os.getenv('FORUM_DIGEST_EMAIL_SENDER', 'notifications@example.org') FORUM_DIGEST_EMAIL_SENDER = os.getenv('FORUM_DIGEST_EMAIL_SENDER', 'notifications@example.org')
...@@ -159,7 +158,8 @@ if LOG_FILE: ...@@ -159,7 +158,8 @@ if LOG_FILE:
}) })
LOGGING['loggers']['']['handlers'].append('file') LOGGING['loggers']['']['handlers'].append('file')
CELERY_TIMEZONE = 'UTC' TIME_ZONE = 'UTC' # what task workers see
CELERY_TIMEZONE = 'UTC' # what the main celery process sees
# set up schedule for forum digest job # set up schedule for forum digest job
if FORUM_DIGEST_TASK_INTERVAL==1440: if FORUM_DIGEST_TASK_INTERVAL==1440:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment