diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-03-14 21:31:42 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-03-14 21:31:42 -0500 |
commit | c940b70c65b1550fe65dbad5841adfe906cf0cdf (patch) | |
tree | 141b128f526f719b09069e5b06e2ee0c9678bea7 /src/alarm-queue-simple.cpp | |
parent | db5b700c7c116c73283019b3fbf823a23639a405 (diff) | |
download | ayatana-indicator-datetime-c940b70c65b1550fe65dbad5841adfe906cf0cdf.tar.gz ayatana-indicator-datetime-c940b70c65b1550fe65dbad5841adfe906cf0cdf.tar.bz2 ayatana-indicator-datetime-c940b70c65b1550fe65dbad5841adfe906cf0cdf.zip |
use the new DateTime::start_of_day() and DateTime::start_of_minute() functions.
Diffstat (limited to 'src/alarm-queue-simple.cpp')
-rw-r--r-- | src/alarm-queue-simple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alarm-queue-simple.cpp b/src/alarm-queue-simple.cpp index fa6c0bc..f45e61a 100644 --- a/src/alarm-queue-simple.cpp +++ b/src/alarm-queue-simple.cpp @@ -102,7 +102,7 @@ bool SimpleAlarmQueue::find_next_alarm(Appointment& setme) const bool found = false; Appointment tmp; const auto now = m_clock->localtime(); - const auto beginning_of_minute = now.add_full (0, 0, 0, 0, 0, -now.seconds()); + const auto beginning_of_minute = now.start_of_minute(); const auto appointments = m_planner->appointments().get(); g_debug ("planner has %zu appointments in it", (size_t)appointments.size()); |