From 21faf53d3ce577ea645c3a584c7f0ff19fa9d1ff Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Tue, 16 Jan 2024 14:22:06 -0300 Subject: [PATCH] Change QDate to QDateTime conversions, specifying time The QDateTime constructor taking a QDate as argument is deprecated. QDate::startOfDay() should be used instead when converting a QDate to a QDateTime. This makes clear what time is used in this conversion. --- src/Cloud/CloudDBCommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cloud/CloudDBCommon.cpp b/src/Cloud/CloudDBCommon.cpp index 4b02fdb89..31411a258 100644 --- a/src/Cloud/CloudDBCommon.cpp +++ b/src/Cloud/CloudDBCommon.cpp @@ -496,7 +496,7 @@ CloudDBHeader::getAllCachedHeader(QList *objectHeader, CloudD selectAfter = objectHeader->at(0).LastChanged.addSecs(1); // DB has Microseconds - we not - so round up to next full second } else { // we do not have charts before 2000 :-) - selectAfter = QDateTime(QDate(2000,01,01)); + selectAfter = QDateTime(QDate(2000,01,01).startOfDay()); } // now get the missing headers (in bulks of xxx - since GAE is not nicely handling high single call volumes)