Skip to content

Commit

Permalink
Fix issue #11810
Browse files Browse the repository at this point in the history
  • Loading branch information
areynoua committed Aug 7, 2023
1 parent a80336b commit 16aa794
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 16aa794

Please sign in to comment.