DateTime and TimeZ error at Supabase functions response to data type conversion

Database & APIs

Hello everyone

I'm having a problem converting Date and Time fields (TIMESTAMPTZ and TIMETZ in Supabase) when I make an API call through the Supabase function to the datatype.

My goal is for the user to be able to indicate the date of the event and the start time of their talk at that event. So I save it in Supabase in the date and start_time fields, with the types TIMESTAMPTZ and TIMETZ, respectively.

I have a supabase_functon that brings this information to FF. So I created an API Call with the Response Type set to Parse as Data Type.

I then created the Data Type with the date and start_time fields with the DateTime types. However, it displays the error "type 'String' is not a subtype of type 'DateTime".

Can anyone help me? How do I solve this?

What have you tried so far?

I tried to change the types but without success.

Did you check FlutterFlow's Documentation for this topic?
No
1
2 replies