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.
Comments
Similar requests
Make Changes to the DB through a Realtime extension
2 votes · 0 comments
Date/Time Picker for timestamptz fields - Select Time Zone on Data Entry
1 vote · 0 comments
Why do I need to do manual refresh of the realtime token?
1 vote · 0 comments
Postgres Realtime Querying hydration and commonality to postgREST
1 vote · 0 comments
Individual NPM packages for supabase-js modules?
2 votes · 0 comments
No comments yet.