diff --git a/AsbCloudInfrastructure/XLExtentions.cs b/AsbCloudInfrastructure/XLExtentions.cs index a4f6f81a..24043605 100644 --- a/AsbCloudInfrastructure/XLExtentions.cs +++ b/AsbCloudInfrastructure/XLExtentions.cs @@ -168,7 +168,10 @@ internal static class XLExtentions if (typeof(T) != typeof(DateTime)) return (T)Convert.ChangeType(cell.GetFormattedString(), typeof(T), CultureInfo.InvariantCulture); - return (T)(object)DateTime.FromOADate((double)cell.Value); + if (cell.Value is DateTime dateTime) + return (T)(object)dateTime; + + return (T)(object)DateTime.FromOADate((double)cell.Value); } catch {