Make real-time data return dates with zone designator #27754
Unanswered
finom
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Currently I use @supabase/realtime-js@2.10.3 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', ...)generatespayload.newthat returns dates in a format that causes problems on client-side when I convert them toDate. In other words the dates look like that2024-04-25T08:12:40.077and when I useDateconstructor, it assumes that this is local time date. Please addZat the end of the dates so we can use the same date logic as with common DB clients such asPrisma. Thanks.All reactions