aboutsummaryrefslogtreecommitdiff
path: root/tests/manual-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/manual-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/manual-test-snap.cpp')
-rw-r--r--tests/manual-test-snap.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/manual-test-snap.cpp b/tests/manual-test-snap.cpp
index e0aad89..94c1ded 100644
--- a/tests/manual-test-snap.cpp
+++ b/tests/manual-test-snap.cpp
@@ -70,12 +70,8 @@ int main(int argc, const char* argv[])
a.url = "alarm:///hello-world";
a.uid = "D4B57D50247291478ED31DED17FF0A9838DED402";
a.type = Appointment::UBUNTU_ALARM;
- 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);
- a.begin = begin;
- a.end = end;
- g_date_time_unref(end);
- g_date_time_unref(begin);
+ a.begin = DateTime::Local(2014, 12, 25, 0, 0, 0);
+ a.end = a.begin.add_full(0,0,1,0,0,-1);
auto loop = g_main_loop_new(nullptr, false);
auto on_snooze = [loop](const Appointment& appt){