1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-17 11:23:00 +00:00

Added testing check for year 1 datetime

This commit is contained in:
Jkorf
2024-10-07 12:57:23 +02:00
parent bbbdac2fd3
commit 23b07d709e
2 changed files with 7 additions and 7 deletions
@@ -188,7 +188,7 @@ namespace CryptoExchange.Net.Testing.Comparers
{
if (propertyValue == default && propValue.Type != JTokenType.Null && !string.IsNullOrEmpty(propValue.ToString()))
{
if (propertyType == typeof(DateTime?) && (propValue.ToString() == "" || propValue.ToString() == "0" || propValue.ToString() == "-1"))
if (propertyType == typeof(DateTime?) && (propValue.ToString() == "" || propValue.ToString() == "0" || propValue.ToString() == "-1" || propValue.ToString() == "01/01/0001 00:00:00"))
return;
// Property value not correct