Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 9f96bbdb authored by Volker Krause's avatar Volker Krause

Adapt to Event::isMultiDay changes

parent f39d180f
......@@ -1020,7 +1020,7 @@ void AgendaItem::paintEvent(QPaintEvent *ev)
longH.clear();
if (const KCalCore::Event::Ptr event = CalendarSupport::event(mIncidence)) {
if (event->isMultiDay(KDateTime::LocalZone)) {
if (event->isMultiDay(QTimeZone::systemTimeZone())) {
// multi-day, all-day event
shortH =
i18n("%1 - %2",
......
......@@ -597,7 +597,7 @@ void AgendaView::Private::insertIncidence(const KCalCore::Incidence::Ptr &incide
} else if (incidence->allDay()) {
mAllDayAgenda->insertAllDayItem(incidence, recurrenceId, beginX, endX,
createSelected);
} else if (event && event->isMultiDay(KDateTime::LocalZone)) {
} else if (event && event->isMultiDay(QTimeZone::systemTimeZone())) {
// TODO: We need a better isMultiDay(), one that receives the occurrence.
// In the single-day handling code there's a neat comment on why
......
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