FeatureFuel
2

Make real-time data return dates with zone designator

Source: supabase/supabase#27754 · opened by @finom
Currently I use @supabase/[email protected] and got a problem that we were facing for around 4 months and I've got to debug it today, so it's probably not relate to the library. The problem is that RealtimeClient#channel('db-changes').channel('db-changes').on('postgres_changes', ...) generates payload.new that returns dates in a format that causes problems on client-side when I convert them to Date. In other words the dates look like that 2024-04-25T08:12:40.077 and when I use Date constructor, it assumes that this is local time date. Please add Z at the end of the dates so we can use the same date logic as with common DB clients such as Prisma. Thanks.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests