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 9bb97fe6 authored by Volker Krause's avatar Volker Krause

Adapt to KCalCore::Calendar API changes

parent 90dafc34
......@@ -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:
......
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