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 ea08a0ae authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Adapt to KCalCore created/lastModified API changes

parent 12282607
......@@ -855,7 +855,7 @@ void KAEventPrivate::set(const Event::Ptr &event)
}
}
mNextMainDateTime = readDateTime(event, dateOnly, mStartDateTime);
mCreatedDateTime = event->created();
mCreatedDateTime = KCalCore::q2k(event->created());
if (dateOnly && !mRepetition.isDaily()) {
mRepetition.set(Duration(mRepetition.intervalDays(), Duration::Days));
}
......@@ -1484,7 +1484,7 @@ bool KAEventPrivate::updateKCalEvent(const Event::Ptr &ev, KAEvent::UidAction ui
ev->clearRecurrence();
}
if (mCreatedDateTime.isValid()) {
ev->setCreated(mCreatedDateTime);
ev->setCreated(KCalCore::k2q(mCreatedDateTime));
}
ev->setReadOnly(readOnly);
ev->endUpdates(); // finally issue an update notification
......@@ -5075,7 +5075,7 @@ bool KAEvent::convertKCalEvents(const Calendar::Ptr &calendar, int calendarVersi
* Convert BEEP category into an audio alarm with no audio file.
*/
if (CalEvent::status(event) == CalEvent::ARCHIVED) {
event->setCreated(event->dtEnd());
event->setCreated(KCalCore::k2q(event->dtEnd()));
}
KDateTime start = event->dtStart();
if (event->allDay()) {
......
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