aboutsummaryrefslogtreecommitdiff
path: root/tests/test-snap.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-03-14 21:33:51 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-03-14 21:33:51 -0500
commit6481c0ecf40df26eca71779a683aeeab9455f1f2 (patch)
treef4ed9b9ce8177c5aacc262c8e6671bc67924f42c /tests/test-snap.cpp
parentc940b70c65b1550fe65dbad5841adfe906cf0cdf (diff)
downloadayatana-indicator-datetime-6481c0ecf40df26eca71779a683aeeab9455f1f2.tar.gz
ayatana-indicator-datetime-6481c0ecf40df26eca71779a683aeeab9455f1f2.tar.bz2
ayatana-indicator-datetime-6481c0ecf40df26eca71779a683aeeab9455f1f2.zip
sync the rest of the code with the changes to DateTime instantiation mentioned two commits ago
Diffstat (limited to 'tests/test-snap.cpp')
-rw-r--r--tests/test-snap.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test-snap.cpp b/tests/test-snap.cpp
index 972c493..e7161d3 100644
--- a/tests/test-snap.cpp
+++ b/tests/test-snap.cpp
@@ -109,12 +109,10 @@ protected:
appt.url = "alarm:///hello-world";
appt.uid = "D4B57D50247291478ED31DED17FF0A9838DED402";
appt.type = Appointment::EVENT;
- auto begin = g_date_time_new_local(2014,12,25,0,0,0);
- auto end = g_date_time_add_full(begin,0,0,1,0,0,-1);
+ auto begin = DateTime::Local(2014,12,25,0,0,0);
+ auto end = begin.add_full(0,0,1,0,0,-1);
appt.begin = begin;
appt.end = end;
- g_date_time_unref(end);
- g_date_time_unref(begin);
service = dbus_test_service_new(nullptr);