From fc15d9093c64414f80373d3bfce782fee8e46ac0 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Sat, 9 Nov 2024 09:10:51 +1100 Subject: [PATCH] Update default time zone to au --- core/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/settings.py b/core/settings.py index 8118f83..68ac1da 100644 --- a/core/settings.py +++ b/core/settings.py @@ -192,9 +192,12 @@ REST_FRAMEWORK = { } # Time zone setting -TIME_ZONE = 'UTC' +TIME_ZONE = 'Australia/Melbourne' USE_TZ = True +# Make sure Celery uses the same timezone +CELERY_TIMEZONE = TIME_ZONE + # Celery Configuration CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'redis://localhost:6379/0') CELERY_RESULT_BACKEND = os.environ.get('CELERY_RESULT_BACKEND', 'redis://localhost:6379/0')