From 43a28087d7d1c1b3f6a3706d07a8ee3888b4c5e9 Mon Sep 17 00:00:00 2001 From: Daniel Nicoletti Date: Wed, 22 Jan 2025 10:35:16 -0300 Subject: [PATCH] Revert std::lround usage FIXES #381 --- QXlsx/source/xlsxutility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QXlsx/source/xlsxutility.cpp b/QXlsx/source/xlsxutility.cpp index 30c9d4d7..63e4e21d 100644 --- a/QXlsx/source/xlsxutility.cpp +++ b/QXlsx/source/xlsxutility.cpp @@ -90,7 +90,7 @@ QVariant datetimeFromNumber(double num, bool is1904) num = num - 1; } - auto msecs = static_cast(std::lround(num * 1000 * 60 * 60 * 24.0)); + auto msecs = static_cast(num * 1000 * 60 * 60 * 24.0 + 0.5); if (is1904) msecs += msecs1904;