|
|
@ -8,7 +8,7 @@ namespace NzbDrone.Common.Serializer
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
|
|
|
public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return DateTime.Parse(reader.GetString());
|
|
|
|
return DateTime.Parse(reader.GetString()).ToUniversalTime();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options)
|
|
|
|
public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options)
|
|
|
|