Skip to content

Commit

Permalink
changed DateTime minvalue to return null instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasSort committed Apr 16, 2024
1 parent 6984284 commit 3263001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ODataWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public static string GetTheDateTimeInZeroTimeZone(object dateTimeObject, bool is
DateTime dateTimeInUtc;
if (SqlDateTime.MinValue.Value == dateTime || DateTime.MinValue == dateTime)
{
return DateTime.MinValue.ToString("yyyy-MM-dd");
return null;
}
else if (SqlDateTime.MaxValue.Value == dateTime || DateTime.MaxValue == dateTime)
{
Expand Down

0 comments on commit 3263001

Please sign in to comment.