summaryrefslogtreecommitdiff
path: root/tests/timezonetest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/timezonetest.cpp')
-rw-r--r--tests/timezonetest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/timezonetest.cpp b/tests/timezonetest.cpp
index d2c49b7..d382425 100644
--- a/tests/timezonetest.cpp
+++ b/tests/timezonetest.cpp
@@ -17,6 +17,7 @@
#include "timezonetest.h"
#include <conversion/timezoneconverter.h>
+#include <conversion/commonconversion.h>
#include <kolabformat/kolabobject.h>
#include <kolabformat/errorhandler.h>
#include "testutils.h"
@@ -168,6 +169,13 @@ void TimezoneTest::testTimezoneDaemonAvailable()
QVERIFY(KSystemTimeZones::isTimeZoneDaemonAvailable());
}
+void TimezoneTest::testUTCOffset()
+{
+ const Kolab::cDateTime expected(2013, 10, 23, 2, 0 ,0, true);
+ const KDateTime input(KDateTime::fromString("2013-10-23T04:00:00+02:00", KDateTime::RFC3339Date));
+ const Kolab::cDateTime result = Kolab::Conversion::fromDate(input);
+ QCOMPARE(result, expected);
+}
QTEST_MAIN( TimezoneTest )