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);