aboutsummaryrefslogtreecommitdiff
path: root/src/engine-eds.cpp
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-06-11 12:36:41 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-06-11 12:36:41 +0000
commit9eee6f013103e856f66f16e17e156b1f6103695a (patch)
tree3678963f3d3520e8703732d7d0bb8489f23b7f49 /src/engine-eds.cpp
parent5e6083e752f7dd50571f87e5910dca6302ce8113 (diff)
parentdb2898b2da7231490fe77ebcef0fb373ce1f2776 (diff)
downloadayatana-indicator-datetime-9eee6f013103e856f66f16e17e156b1f6103695a.tar.gz
ayatana-indicator-datetime-9eee6f013103e856f66f16e17e156b1f6103695a.tar.bz2
ayatana-indicator-datetime-9eee6f013103e856f66f16e17e156b1f6103695a.zip
Prefer to use ubuntu-platform-hardware-api for wakeups when possible s.t. user-defined alarms/appointments can wake up the phone from sleep to give a snap decision. Fixes: 1299916
Diffstat (limited to 'src/engine-eds.cpp')
-rw-r--r--src/engine-eds.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp
index da93206..1949193 100644
--- a/src/engine-eds.cpp
+++ b/src/engine-eds.cpp
@@ -418,6 +418,14 @@ private:
auto status = ICAL_STATUS_NONE;
e_cal_component_get_status(component, &status);
+ const auto begin_dt = DateTime(begin);
+ const auto end_dt = DateTime(end);
+ g_debug ("got appointment from %s to %s, uid %s status %d",
+ begin_dt.format("%F %T").c_str(),
+ end_dt.format("%F %T").c_str(),
+ uid,
+ (int)status);
+
if ((uid != nullptr) &&
(status != ICAL_STATUS_COMPLETED) &&
(status != ICAL_STATUS_CANCELLED))
@@ -430,8 +438,8 @@ private:
if (text.value)
appointment.summary = text.value;
- appointment.begin = DateTime(begin);
- appointment.end = DateTime(end);
+ appointment.begin = begin_dt;
+ appointment.end = end_dt;
appointment.color = subtask->color;
appointment.uid = uid;