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.
This commit is contained in:
Alejandro Martinez
2024-01-16 14:22:06 -03:00
parent 894eb421e3
commit 21faf53d3c

View File

@@ -496,7 +496,7 @@ CloudDBHeader::getAllCachedHeader(QList<CommonAPIHeaderV1> *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)