aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-04-06 13:18:44 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-04-06 13:18:44 -0500
commit9977f16b1f6e76fc3ac79383a1259340497af4a2 (patch)
treeb6aeecfb77475e9ca6546768d4569a2188e21e22
parent7e9b4645721cc76322198df3b55f4cdedc55c200 (diff)
downloadayatana-indicator-datetime-9977f16b1f6e76fc3ac79383a1259340497af4a2.tar.gz
ayatana-indicator-datetime-9977f16b1f6e76fc3ac79383a1259340497af4a2.tar.bz2
ayatana-indicator-datetime-9977f16b1f6e76fc3ac79383a1259340497af4a2.zip
in Actions, sync DateTime API use by calling DateTime::Local(time_t) instead of DateTime::DateTime(time_t)
-rw-r--r--src/actions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions.cpp b/src/actions.cpp
index 839c9cd..930e100 100644
--- a/src/actions.cpp
+++ b/src/actions.cpp
@@ -43,7 +43,7 @@ DateTime datetime_from_timet_variant(GVariant* v)
t = g_variant_get_int64(v);
if (t != 0)
- return DateTime(t);
+ return DateTime::Local(t);
else
return DateTime::NowLocal();
}
@@ -143,7 +143,7 @@ void on_calendar_activated(GSimpleAction * /*action*/,
g_return_if_fail(t != 0);
- auto dt = DateTime(t).start_of_day();
+ auto dt = DateTime::Local(t).start_of_day();
static_cast<Actions*>(gself)->set_calendar_date(dt);
}