diff options
author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2016-11-16 02:54:56 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-08-29 14:38:27 +0200 |
commit | bc4e8994778c298d5bc9f349c4dc1e92263cb974 (patch) | |
tree | e9cc8a80d6638d73c4792f56ba41f8bb74b772e7 /src/planner-upcoming.cpp | |
parent | 192f5450b2725c259d471eaab0e066ec78932f57 (diff) | |
download | ayatana-indicator-datetime-bc4e8994778c298d5bc9f349c4dc1e92263cb974.tar.gz ayatana-indicator-datetime-bc4e8994778c298d5bc9f349c4dc1e92263cb974.tar.bz2 ayatana-indicator-datetime-bc4e8994778c298d5bc9f349c4dc1e92263cb974.zip |
UpcomingPlanner: don't get events from the day before of the selected one
We only need events from the midnight of the selected date to the next month
Diffstat (limited to 'src/planner-upcoming.cpp')
-rw-r--r-- | src/planner-upcoming.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/planner-upcoming.cpp b/src/planner-upcoming.cpp index 918ebbe..149ac09 100644 --- a/src/planner-upcoming.cpp +++ b/src/planner-upcoming.cpp @@ -33,7 +33,7 @@ UpcomingPlanner::UpcomingPlanner(const std::shared_ptr<RangePlanner>& range_plan { date().changed().connect([this](const DateTime& dt){ // set the range to the upcoming month - const auto b = dt.add_days(-1).start_of_day(); + const auto b = dt.start_of_day(); const auto e = b.add_full(0, 1, 0, 0, 0, 0); g_debug("%p setting date range to [%s..%s]", this, b.format("%F %T").c_str(), e.format("%F %T").c_str()); m_range_planner->range().set(std::pair<DateTime,DateTime>(b,e)); |