Commit 54964f28 authored by Volker Krause's avatar Volker Krause
Browse files

Convert time to calendar timezone before taking the date

If both timezones differ widely, we can otherwise end up with the wrong
date here, and therefore not find anything.
parent 8d314115
......@@ -88,7 +88,7 @@ QSharedPointer<KCalendarCore::Event> CalendarHandler::findEvent(const QSharedPoi
return {};
}
const auto dt = SortUtil::startDateTime(reservation).date();
const auto dt = SortUtil::startDateTime(reservation).toTimeZone(calendar->timeZone()).date();
const auto events = calendar->events(dt);
for (const auto &event : events) {
if (!event->uid().startsWith(QLatin1String("KIT-"))) {
......
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