Celerybeat uses UTC even with time zone settings

I find that celerybeat uses UTC time in its planning (and displays logs in British time ?!), although I believe that I have the necessary settings in the django.py settings:

TIME_ZONE = 'UTC'
USE_TZ = True
CELERY_ENABLE_UTC = True
CELERY_TIMEZONE = 'Australia/Sydney'
CELERYBEAT_SCHEDULE = 
    "testRunBeat" : {
        "task" : "experiments.tasks.testHeartBeat",
        "schedule" : crontab(minute = "*/1", hour="13-14"),    
}

I tried switching the TIME_ZONE variable with no luck

I use:

django==1.4
celery==2.5.5
django-celery==2.5.5

thank

+6
source share
2 answers

It turns out that it was a bug in the celery, which is now fixed. See https://github.com/celery/django-celery/issues/150

+3
source

I think you want

CELERY_ENABLE_UTC = False

, , UTC. , , 3.0.

+3