From 3d0bb40da6e80a82a5f5da93ad44ece333434fa2 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 3 Dec 2021 12:00:40 +0700 Subject: [PATCH] for some strange reason timezone needs to be defined here again... --- tubearchivist/home/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tubearchivist/home/tasks.py b/tubearchivist/home/tasks.py index 0b5a55e..560a483 100644 --- a/tubearchivist/home/tasks.py +++ b/tubearchivist/home/tasks.py @@ -34,6 +34,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings") app = Celery("tasks", broker=f"redis://{REDIS_HOST}:{REDIS_PORT}") app.config_from_object("django.conf:settings", namespace="ta:") app.autodiscover_tasks() +app.conf.timezone = os.environ.get("TZ") or "UTC" @shared_task(name="update_subscribed")