From e11d4ce310f62bcca2760bb48febf80afa775276 Mon Sep 17 00:00:00 2001 From: maliming <6908465+maliming@users.noreply.github.com> Date: Mon, 24 Aug 2020 10:54:59 +0800 Subject: [PATCH] Add nullable datetime types. --- .../ObjectExtending/ObjectExtendingPropertyInfoExtensions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/ObjectExtending/ObjectExtendingPropertyInfoExtensions.cs b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/ObjectExtending/ObjectExtendingPropertyInfoExtensions.cs index dc8a28e89f3..7daea2cad03 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/ObjectExtending/ObjectExtendingPropertyInfoExtensions.cs +++ b/framework/src/Volo.Abp.AspNetCore.Mvc/Volo/Abp/ObjectExtending/ObjectExtendingPropertyInfoExtensions.cs @@ -9,7 +9,9 @@ public static class ObjectExtensionPropertyInfoAspNetCoreMvcExtensions private static readonly Type[] DateTimeTypes = { typeof(DateTime), - typeof(DateTimeOffset) + typeof(DateTime?), + typeof(DateTimeOffset), + typeof(DateTimeOffset?) }; public static bool IsDate(this IBasicObjectExtensionPropertyInfo property)