diff --git a/src/Microsoft.AspNetCore.OData/Edm/EdmPrimitiveHelper.cs b/src/Microsoft.AspNetCore.OData/Edm/EdmPrimitiveHelper.cs index f607d600c..cba371541 100644 --- a/src/Microsoft.AspNetCore.OData/Edm/EdmPrimitiveHelper.cs +++ b/src/Microsoft.AspNetCore.OData/Edm/EdmPrimitiveHelper.cs @@ -108,7 +108,7 @@ public static object ConvertPrimitiveValue(object value, Type type, TimeZoneInfo dateTimeOffsetValue = TimeZoneInfo.ConvertTime(dateTimeOffsetValue, timeZone); - var dateTimeKind = GetTargetDateTimeKind(timeZone); + DateTimeKind dateTimeKind = GetTargetDateTimeKind(timeZone); return DateTime.SpecifyKind(dateTimeOffsetValue.DateTime, dateTimeKind); }