diff options
| author | Charles Kerr <charles.kerr@canonical.com> | 2015-03-17 15:23:49 +0000 |
|---|---|---|
| committer | CI Train Bot <ci-train-bot@canonical.com> | 2015-03-17 15:23:49 +0000 |
| commit | ddde67df581dea8c5a261e43d5b12a3821f06ed1 (patch) | |
| tree | e3c2859c54b0bba9c72ad221ea41c95ed8f5a70f /src/alarm-queue-simple.cpp | |
| parent | 15ec7f61fa84a9a8b40c1c9fcfa6c2a268d3232b (diff) | |
| parent | 273c3b3829c9a3e853d0b6b0a32ae87cc3c6852b (diff) | |
| download | ayatana-indicator-datetime-ddde67df581dea8c5a261e43d5b12a3821f06ed1.tar.gz ayatana-indicator-datetime-ddde67df581dea8c5a261e43d5b12a3821f06ed1.tar.bz2 ayatana-indicator-datetime-ddde67df581dea8c5a261e43d5b12a3821f06ed1.zip | |
Fix bug that prevented clicking on calendar days where DST sprang forward. Fixes: #1429388
Approved by: Ted Gould, PS Jenkins bot
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()); |
