aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/planner-snooze.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/planner-snooze.cpp b/src/planner-snooze.cpp
index 6d427ca..51ad0d2 100644
--- a/src/planner-snooze.cpp
+++ b/src/planner-snooze.cpp
@@ -55,10 +55,10 @@ public:
{
Appointment appt = appt_in;
- // adjust the time
- const auto appt_length_secs = appt.end - appt.begin;
+ // reschedule the alarm to go off N minutes from now
+ const auto alarm_duration_secs = appt.end - appt.begin;
appt.begin = m_clock->localtime().add_full(0,0,0,0,m_settings->snooze_duration.get(),0);
- appt.end = appt.begin.add_full(0,0,0,0,0,appt_length_secs);
+ appt.end = appt.begin.add_full(0,0,0,0,0,alarm_duration_secs);
// give it a new ID
gchar* uid = e_uid_new();