Commit 3cb2fc77 authored by Laurent Montel's avatar Laurent Montel 😁

Make it compile against qt5.15. Constructor is deprecated

parent e003a4e5
......@@ -718,8 +718,8 @@ void KfindTabWidget::setQuery(KQuery *query)
const QDate &to = toDate->date();
// do not generate negative numbers .. find doesn't handle that
time_t time1 = epoch.secsTo(QDateTime(from));
time_t time2 = epoch.secsTo(QDateTime(to.addDays(1))) - 1; // Include the last day
time_t time1 = epoch.secsTo(QDateTime(from.startOfDay()));
time_t time2 = epoch.secsTo(QDateTime(to.addDays(1).startOfDay())) - 1; // Include the last day
query->setTimeRange(time1, time2);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment