Skip to content

Commit d71dbf5

Browse files
authored
Fix issue #11810 (#11814)
1 parent 09b9113 commit d71dbf5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

files/usr/share/cinnamon/applets/[email protected]/eventView.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ class EventData {
106106
// causing it to appear for two days.
107107
this.end = this.end.add_seconds(-1);
108108
}
109+
if (this.end.compare(this.start) == -1) {
110+
// An all day event can be a single point in time at 00:00. The previous -1s
111+
// will cause it to appear all the following days in the current view.
112+
this.end = this.start;
113+
}
109114
this.start_date = date_only(this.start);
110115
this.end_date = date_only(this.end);
111116
this.multi_day = !dt_equals(this.start_date, this.end_date);

0 commit comments

Comments
 (0)