Default Json converter for DateTime and DateTime? typed properties.
More...
|
| override? DateTime | Read (ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) |
|
override void | Write (Utf8JsonWriter writer, DateTime? value, JsonSerializerOptions options) |
| | Always write the date and time with Z (UTC) timezone Milliseconds are only written if they are not 0.
|
Default Json converter for DateTime and DateTime? typed properties.
◆ Read()
| override? DateTime Buzzware.Cascade.DateTimeJsonConverter.Read |
( |
ref Utf8JsonReader | reader, |
|
|
Type | typeToConvert, |
|
|
JsonSerializerOptions | options ) |
|
inline |
- If the timezone is specified, decode the date and time using it
- When no timezone is specified, assume the local timezone
- Always return a DateTime with kind == Local so will be converted to the local time
The documentation for this class was generated from the following file:
- Buzzware.Cascade/utilities/DateTimeConverter.cs