aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2017-09-12 22:12:08 +0200
committerDaniel Vrátil <[email protected]>2017-09-12 22:12:08 +0200
commit7c12c8b209c082cd1b2fed401918e053a1ec7ff8 (patch)
tree7f5c702e515baf45124560956da27a4522f96862
parent46974344a9eb78367607ee100209c3f2b15668b7 (diff)
Port Period and Duration to QDateTime
-rw-r--r--src/calendar/calendarservice.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/calendar/calendarservice.cpp b/src/calendar/calendarservice.cpp
index f01686a..79c54b9 100644
--- a/src/calendar/calendarservice.cpp
+++ b/src/calendar/calendarservice.cpp
@@ -34,6 +34,7 @@
#include <KCalCore/Recurrence>
#include <KCalCore/RecurrenceRule>
#include <KCalCore/ICalFormat>
+#include <KCalCore/Utils>
#include <QJsonDocument>
@@ -459,7 +460,7 @@ ObjectPtr Private::JSONToEvent(const QVariantMap& data, const QString &timezone)
for (const QVariant & r : overrides) {
QVariantMap override = r.toMap();
KCalCore::Alarm::Ptr alarm(new KCalCore::Alarm(static_cast<KCalCore::Incidence*>(event.data())));
- alarm->setTime(event->dtStart());
+ alarm->setTime(KCalCore::k2q(event->dtStart()));
if (override.value(QStringLiteral("method")).toString() == QLatin1String("popup")) {
alarm->setType(KCalCore::Alarm::Display);