summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-09-11 20:10:10 +0000
committerVolker Krause <[email protected]>2017-09-11 20:10:10 +0000
commit9bb97fe6d705899642648c018cc0df948dce7a0e (patch)
tree1d3fb62cbd93edfc2dfc01e01b7101564307bd71
parent90dafc34f0e45547fa083a129a9bdb6a560437e2 (diff)
Adapt to KCalCore::Calendar API changes
-rw-r--r--src/incidencedialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/incidencedialog.cpp b/src/incidencedialog.cpp
index 0eff530..4ffc1b4 100644
--- a/src/incidencedialog.cpp
+++ b/src/incidencedialog.cpp
@@ -57,6 +57,7 @@
#include <QDir>
#include <QIcon>
#include <QStandardPaths>
+#include <QTimeZone>^
using namespace IncidenceEditorNG;
@@ -292,7 +293,7 @@ void IncidenceDialogPrivate::loadTemplate(const QString &templateName)
{
Q_Q(IncidenceDialog);
- KCalCore::MemoryCalendar::Ptr cal(new KCalCore::MemoryCalendar(KDateTime::LocalZone));
+ KCalCore::MemoryCalendar::Ptr cal(new KCalCore::MemoryCalendar(QTimeZone::systemTimeZone()));
const QString fileName = QStandardPaths::locate(
QStandardPaths::GenericDataLocation,
@@ -358,7 +359,7 @@ void IncidenceDialogPrivate::saveTemplate(const QString &templateName)
{
Q_ASSERT(!templateName.isEmpty());
- KCalCore::MemoryCalendar::Ptr cal(new KCalCore::MemoryCalendar(KDateTime::LocalZone));
+ KCalCore::MemoryCalendar::Ptr cal(new KCalCore::MemoryCalendar(QTimeZone::systemTimeZone()));
switch (mEditor->type()) {
case KCalCore::Incidence::TypeEvent: