From 16aa7942727d0ec13362c5661d0a2281ae13d83d Mon Sep 17 00:00:00 2001 From: Alexis Reynouard Date: Mon, 7 Aug 2023 23:24:10 +0200 Subject: [PATCH] Fix issue #11810 --- .../cinnamon/applets/calendar@cinnamon.org/eventView.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/usr/share/cinnamon/applets/calendar@cinnamon.org/eventView.js b/files/usr/share/cinnamon/applets/calendar@cinnamon.org/eventView.js index 59e4402e41..b5dfe36fba 100644 --- a/files/usr/share/cinnamon/applets/calendar@cinnamon.org/eventView.js +++ b/files/usr/share/cinnamon/applets/calendar@cinnamon.org/eventView.js @@ -106,6 +106,11 @@ class EventData { // causing it to appear for two days. this.end = this.end.add_seconds(-1); } + if (this.end.compare(this.start) == -1) { + // An all day event can be a single point in time at 00:00. The previous -1s + // will cause it to appear all the following days in the current view. + this.end = this.start; + } this.start_date = date_only(this.start); this.end_date = date_only(this.end); this.multi_day = !dt_equals(this.start_date, this.end_date);