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

Adapt to KCalCore recurrence API changes

parent eeeb0d9d
......@@ -33,6 +33,8 @@ using namespace KHolidays;
#include <ksystemtimezone.h>
#include <klocalizedstring.h>
#include <kglobal.h>
#include <kcalcore/utils.h>
#include "kalarmcal_debug.h"
using namespace KCalCore;
......@@ -5299,7 +5301,7 @@ bool KAEvent::convertKCalEvents(const Calendar::Ptr &calendar, int calendarVersi
// It's an expired recurrence.
// Set the alarm offset relative to the first actual occurrence
// (taking account of possible exceptions).
KDateTime dt = event->recurrence()->getNextDateTime(startDateTime.addDays(-1));
KDateTime dt = KCalCore::q2k(event->recurrence()->getNextDateTime(KCalCore::k2q(startDateTime).addDays(-1)));
dt.setDateOnly(dateOnly);
adjustment = startDateTime.secsTo(dt);
} else {
......
This diff is collapsed.
......@@ -24,9 +24,10 @@
#define KALARM_KARECURRENCE_H
#include "kalarmcal_export.h"
#include <KDateTime>
#include <kcalcore/recurrencerule.h>
#include <kcalcore/duration.h>
#include <kcalcore/incidencebase.h>
namespace KCalCore
{
class Recurrence;
......
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