Title
c

Constantino Schillebeeckx

10/18/2021, 6:08 PM
Is
prefect.context.get("scheduled_start_time")
timezone aware? if not, is there an assumed timezone of UTC? If I schedule my flow with something like
CronSchedule(cron, start_date=pendulum.datetime(2021, 1, 1, tz=tz))
will the "scheduled_start_time" have the same timezone as the cron schedule?
k

Kevin Kho

10/18/2021, 6:13 PM
I believe it is not, but I am double checking. Prefect Cloud uses all UTC time. Will check though.
Yeah pretty sure it’s UTC when you grab from context
c

Constantino Schillebeeckx

10/18/2021, 6:56 PM
Just executed a few dummy flows and the
scheduled_start_time
does indeed come back as UTC with something like
2021-10-18T18:52:26.006694+00:00