diff options
| author | Robert Tari <robert@tari.in> | 2021-08-30 01:26:19 +0200 |
|---|---|---|
| committer | Robert Tari <robert@tari.in> | 2021-08-30 01:26:19 +0200 |
| commit | 22e66866c7b17fc655479ca911269b86cb80a744 (patch) | |
| tree | e0aa6e6a8f50fd8451e03efc17b89d8c8c3de781 /src/planner-upcoming.cpp | |
| parent | 1f8263dedf9b7e6f9e06492bd69f2436e36171a2 (diff) | |
| parent | 38e5efecbb3154a83a70c1c762802ec7927b3caa (diff) | |
| download | ayatana-indicator-datetime-22e66866c7b17fc655479ca911269b86cb80a744.tar.gz ayatana-indicator-datetime-22e66866c7b17fc655479ca911269b86cb80a744.tar.bz2 ayatana-indicator-datetime-22e66866c7b17fc655479ca911269b86cb80a744.zip | |
Merge branch 'tari01-pr/ubports-patches'
Attributes GH PR #46: https://github.com/AyatanaIndicators/ayatana-indicator-datetime/pull/46
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)); |
