https://prefect.io logo
Title
q

Questionnaire

05/23/2020, 2:08 PM
Hello folks, I want to schedule my flow for every midnight. I'm using CronClock which by default follows DST, What should I do if I want to use the timezone as per my deployment server or UTC?
j

Jeremiah

05/23/2020, 2:50 PM
If you pass a start_time to the schedule, its time zone will be used by the clock - so you could pass a UTC date time.
q

Questionnaire

05/23/2020, 3:17 PM
Hello @Jeremiah, According to docs there is no param
start_time
in Schedule class.
j

Jeremiah

05/23/2020, 3:27 PM
q

Questionnaire

05/23/2020, 3:29 PM
Ohh ok, I got confused because in previous message you said pass this param in schedules.... But no issues let me try..
๐Ÿ™‚
@Jeremiah is there any specific supported format???
j

Jeremiah

05/23/2020, 3:44 PM
Any datetime should work; we recommend using pendulum:
pendulum.datetime(2020, 5, 23)
q

Questionnaire

05/23/2020, 3:45 PM
Ohk, Thanks @Jeremiah ๐Ÿ‘