diff --git a/src/ImportData/Entities/Entity.cs b/src/ImportData/Entities/Entity.cs index 626f43f..bf947ea 100644 --- a/src/ImportData/Entities/Entity.cs +++ b/src/ImportData/Entities/Entity.cs @@ -264,7 +264,7 @@ private void UpdateProperties(IEntityBase entity) /// Культура. /// Преобразованная дата. /// - private DateTimeOffset ParseDate(string value, NumberStyles style, CultureInfo culture) + private DateTimeOffset? ParseDate(string value, NumberStyles style, CultureInfo culture) { if (!string.IsNullOrEmpty(value)) { @@ -279,7 +279,7 @@ private DateTimeOffset ParseDate(string value, NumberStyles style, CultureInfo c throw new FormatException("Неверный формат строки."); } else - return DateTimeOffset.MinValue; + return null; } ///