https://prefect.io logo
#prefect-server
Title
# prefect-server
l

Lana Dann

05/05/2022, 5:59 PM
do you have a code example of setting a filter in a certain timezone? i think they default to UTC but i’d like to set them in PST (since the start time is in PST)
k

Kevin Kho

05/05/2022, 6:01 PM
Try passing a timezone aware date time with
pendulum
l

Lana Dann

05/05/2022, 6:07 PM
does passing a datetime object into filters only filter within that date range though? our specific use case is a flow that runs hourly but skips midnight and 1am
k

Kevin Kho

05/05/2022, 6:49 PM
ah I see what you are saying. I think you want the
between_times
filter? but yes looks like you can pass pendulum to it
l

Lana Dann

05/05/2022, 6:51 PM
i think we’re just going to convert the times to UTC for the filters 😛 thanks though!
k

Kevin Kho

05/05/2022, 6:52 PM
ok lol. sounds good!
11 Views