Can supabase order timestamp with timezone?

Hello everyone, I tried to make an ordering rule to my supabase query but it's not working as expected. I am using the timestamp with timezone format 2024-09-13 23:39:43.148866+00 to store the date. Is is possible to order query.order('send_at', { ascending: true }); a timestamp column?
7 Replies
garyaustin
garyaustin8mo ago
What does not working as expected mean? What is your whole query?
lucas tiberio
lucas tiberioOP8mo ago
It just mean that things are not ordered, rest are working
garyaustin
garyaustin8mo ago
Ordering works on a timestamp column
vick
vick8mo ago
Specifically, a TIMESTAMP WITH TIMEZONE column.
garyaustin
garyaustin8mo ago
timestamptz works.
vick
vick8mo ago
That's just an alias, but yes.
garyaustin
garyaustin8mo ago
Well at least for me as a single user...

Did you find this page helpful?