Skip to content

Question: Usage of timezone field in CrontabSchedule #641

Discussion options

You must be logged in to vote

Yes, it is correct to say that tasks with this schedule will run every Monday at 10:30 for the Europe/Brussels timezone, and on the server, it will run at 9:30 effectively since it is in UTC.

Regarding Daylight Saving Time (DST), it will be automatically taken into account by the pytz library, which is used by Celery to handle time zones. Europe/Brussels time zone observes DST, so when DST starts, the task will run at 11:30 UTC instead of 10:30 UTC, and when DST ends, the task will run at 9:30 UTC instead of 10:30 UTC.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by auvipy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #625 on March 19, 2023 07:34.