Skip to content

Commit

Permalink
Update src/Microsoft.AspNetCore.OData/Edm/EdmPrimitiveHelper.cs
Browse files Browse the repository at this point in the history
minor refactor

Co-authored-by: Samuel Wanjohi <[email protected]>
  • Loading branch information
VitaliyChaban and WanjohiSammy authored Nov 26, 2024
1 parent 46dca45 commit 0678100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.AspNetCore.OData/Edm/EdmPrimitiveHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0678100

Please sign in to comment.