mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user