From e909f1ed6fd832dcc8c109f0f0f1b82f2a2d82b7 Mon Sep 17 00:00:00 2001 From: Pascal Railhet Date: Mon, 19 Oct 2026 15:58:58 +0200 Subject: [PATCH] Remove useless check --- src/cell.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cell.jl b/src/cell.jl index 4a54d463..1f181302 100644 --- a/src/cell.jl +++ b/src/cell.jl @@ -371,12 +371,12 @@ function _parse_excel_datetime_raw(v::AbstractString) isempty(v) && throw(XLSXError("Cannot convert an empty string into a datetime value.")) if occursin('.', v) || v == "0" time_value = _parse_cell_float(v) - time_value >= 0 || throw(XLSXError("Cannot have a datetime value < 0. Got $time_value")) + #time_value >= 0 || throw(XLSXError("Cannot have a datetime value < 0. Got $time_value")) datatype = time_value < 1.0 ? CT_TIME : CT_DATETIME return reinterpret(UInt64, time_value), datatype else date_value = parse(Int64, v) - date_value >= 0 || throw(XLSXError("Cannot have a datetime value < 0. Got $date_value")) + #date_value >= 0 || throw(XLSXError("Cannot have a datetime value < 0. Got $date_value")) return reinterpret(UInt64, date_value), CT_DATE end end