migrated to v15

This commit is contained in:
Luke Hagar
2024-03-18 15:10:45 -07:00
parent f8e29c091a
commit 367dc248c3
148 changed files with 4128 additions and 1782 deletions

View File

@@ -16,8 +16,16 @@ namespace PlexAPI.Utils
internal class IsoDateTimeSerializer: JsonConverter
{
public override bool CanConvert(Type objectType) =>
objectType == typeof(DateTime);
public override bool CanConvert(Type objectType)
{
var nullableType = Nullable.GetUnderlyingType(objectType);
if (nullableType != null)
{
return nullableType == typeof(DateTime);
}
return objectType == typeof(DateTime);
}
public override bool CanRead => false;