summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2015-04-29 18:19:27 +0200
committerChristian Mollekopf <mollekopf@kolabsys.com>2015-04-29 18:19:27 +0200
commitecea5617565364a249429584127ae69101d88602 (patch)
tree8ae3ef611f7cb8dee5d2d2ad5923d1cc88e9c2d4
parent779b8f98fef34ded1e1bf99ec99927ed6e3db032 (diff)
downloadlibkolab-ecea5617565364a249429584127ae69101d88602.tar.gz
Restore timezone functionality for legacy KDateTime usage.
-rw-r--r--conversion/commonconversion.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/conversion/commonconversion.cpp b/conversion/commonconversion.cpp
index 57faf1d..177b796 100644
--- a/conversion/commonconversion.cpp
+++ b/conversion/commonconversion.cpp
@@ -21,6 +21,7 @@
#include <iostream>
#include <KTimeZone>
+#include <KSystemTimeZones>
#include <QUrl>
#include <QTimeZone>
@@ -42,7 +43,9 @@ KDateTime::Spec getTimeSpec(bool isUtc, const std::string& timezone)
Warning() << "invalid timezone: " << QString::fromStdString(timezone) << ", assuming floating time";
return KDateTime::Spec(KDateTime::ClockTime);
}
- return KDateTime::Spec(KTimeZone(normalizedTz));
+ //FIXME convert this to a proper KTimeZone
+
+ return KDateTime::Spec(KSystemTimeZones::zone(normalizedTz));
}
KDateTime toDate(const Kolab::cDateTime &dt)