supabase-community / realtime-csharp

A C# client library for supabase/realtime.
https://supabase-community.github.io/realtime-csharp/api/Supabase.Realtime.Client.html
MIT License
70 stars 12 forks source link

Deserializing DateTime fails #15

Closed kamyker closed 2 years ago

kamyker commented 2 years ago

Postgrest converter works fine but realtime doesn't when using:

channel.OnUpdate += (sender, args) =>
{
    var updated = args.Response.Model<MyType>();

Fails in: https://github.com/supabase-community/realtime-csharp/blob/3ce7f335ffcd475228e208e9a70ce673f73fc7d1/Realtime/Converters/RealtimeTimestampConverter.cs#L22

acupofjose commented 2 years ago

See if that doesn't get it working for you please sir!

kamyker commented 2 years ago

See if that doesn't get it working for you please sir!

Thanks, stopped using supa for now as hosting on arm doesn't work yet. Will check later.