Closed benmton closed 2 years ago
Thanks for the feedback @benmton - this is a complex one! In part it's a partner to https://github.com/PrefectHQ/prefect/issues/6646 - another request for the ability to add a timezone to date time paramters in the UI.
But I think there's a also a bug related to how we're handling schema. @pleek91 - one to possibly test/be aware of with our schema updates
Hey, I'm also experiencing this, could it be parsed as a proper date string instead?In FastAPI for instance, if you select a parameter as datetime.date
the string format becomes YYYY-MM-DD e.g 2002-02-02
First check
Bug summary
Submitting a flow run with custom
datetime.date
parameter causes a ParameterTypeError:Reproduction
I have a flow run like this:
and attempted to submit a run from the UI with a custom parameter like this: First thing I notice is that the date format in the UI is in the US specific format rather than an international format. After submitting this run, I received this error in the flow run logs: The parameter that is submitted to the flow is actually a datetime, and ends up being the wrong date as it assumes midnight in my local timezone before converting to UTC (I'm currently on UTC+1 timezone)
Error
Browers
Prefect version
Additional context
No response