filter: add a week to maximum default date time

The filter sets the maximum date to now. This is so confusing when
you manually add a dive and it isn't shown, because it is slightly
in the future. Add seven days, that should help.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-22 00:11:45 +02:00 committed by Dirk Hohndel
parent 89784a176e
commit 3d4698c0a1

View file

@ -77,7 +77,7 @@ struct FilterData {
double maxAirTemp = 200;
QDateTime fromDate = QDateTime(QDate(1980,1,1));
QTime fromTime = QTime(0,0);
QDateTime toDate = QDateTime::currentDateTime();
QDateTime toDate = QDateTime::currentDateTime().addDays(7);
QTime toTime = QTime::currentTime();
QStringList tags;
QStringList people;