Commit 62c7a898 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

PimEventsPlugin: fix timezone handling in regular events

parent b9fd9224
......@@ -189,8 +189,8 @@ CalendarEvents::EventData EventDataVisitor::incidenceData(const KCalCore::Incide
data.setIsAllDay(incidence->allDay());
data.setIsMinor(false);
data.setUid(generateUid(incidence));
data.setStartDateTime(incidence->dtStart().dateTime());
data.setEndDateTime(incidence->dateTime(KCalCore::Incidence::RoleEnd).dateTime());
data.setStartDateTime(incidence->dtStart().toLocalZone().dateTime());
data.setEndDateTime(incidence->dateTime(KCalCore::Incidence::RoleEnd).toLocalZone().dateTime());
data.setEventColor(mDataSource->calendarColorForIncidence(incidence));
return data;
}
......
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