Class PostgresDateTimeOffsetConverter
✅ DateTimeOffset converter for PostgreSQL timestamptz.
public class PostgresDateTimeOffsetConverter : JsonConverter<DateTimeOffset>
Inheritance
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type .
public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Write(Utf8JsonWriter, DateTimeOffset, JsonSerializerOptions)
Writes a specified value as JSON.
public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options)