Good morning! Apologies if this is answered in the...
# prefect-community
Good morning! Apologies if this is answered in the docs, I can't seem to find it. Prefect always seems to run in UTC, and so the
needs to be set in UTC. Not a big deal, but is it possible to override the timezone? ๐Ÿ•
Hi Matt! Every Clock accepts a
keyword argument at initialization; if you pass a timezone-aware datetime / pendulum object, Prefect will respect that timezone for the clock / schedule. E.g.,
Copy code
from prefect.schedules.clocks import CronClock  
import pendulum

clock = CronClock("0 1 0 0 1/5","US/Eastern"))
DateTime(2020, 1, 1, 1, 0, 0, tzinfo=Timezone('US/Eastern'))
we should probably document this at the top level of the schedules / clock API documentation and as well as the concept docs
@Marvin archive โ€œCan I override the timezone of a Prefect Clock?โ€
Brilliant, thank you, Chris!