Commit e1d0361f authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

User helper methods to convert between KDT and QDT

parent b120e563
......@@ -21,6 +21,8 @@
#include "pimdatasource.h"
#include "pimeventsplugin_debug.h"
#include <KCalCore/Utils>
BaseEventDataVisitor::BaseEventDataVisitor(PimDataSource *dataSource, const QDate &start, const QDate &end)
: mDataSource(dataSource)
, mStart(start)
......@@ -110,7 +112,7 @@ QVector<CalendarEvents::EventData> BaseEventDataVisitor::explodeIncidenceOccuren
}
copy.setStartDateTime(dt);
copy.setEndDateTime(dt.addSecs(duration));
copy.setUid(generateUid(incidence, rec.dateTime()));
copy.setUid(generateUid(incidence, KCalCore::k2q(rec)));
results.push_back(copy);
......
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