do you have a code example of setting a filter in ...
# prefect-server
l
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
Try passing a timezone aware date time with
pendulum
l
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
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
i think we’re just going to convert the times to UTC for the filters 😛 thanks though!
k
ok lol. sounds good!