mirror of
https://github.com/QtExcel/QXlsx.git
synced 2025-01-30 05:02:52 +08:00
parent
9e4ebc0396
commit
4f188ed320
@ -90,7 +90,7 @@ QVariant datetimeFromNumber(double num, bool is1904)
|
||||
num = num - 1;
|
||||
}
|
||||
|
||||
auto msecs = static_cast<qint64>(std::lround(num * 1000 * 60 * 60 * 24.0));
|
||||
auto msecs = static_cast<qint64>(num * 1000 * 60 * 60 * 24.0 + 0.5);
|
||||
|
||||
if (is1904)
|
||||
msecs += msecs1904;
|
||||
|
Loading…
x
Reference in New Issue
Block a user