Skip to content

Commit

Permalink
Fixed bug on last spliced day
Browse files Browse the repository at this point in the history
The last day of a multi-day spliced event did not get today or tomorrow set, fixed now.
  • Loading branch information
retroflex authored Oct 9, 2022
1 parent 8faab43 commit 2509ddc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/default/calendar/calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,8 @@ Module.register("calendar", {
}
// Last day
event.title += " (" + count + "/" + maxCount + ")";
event.today += event.startDate >= today && event.startDate < today + ONE_DAY;
event.tomorrow = !event.today && event.startDate >= today + ONE_DAY && event.startDate < today + 2 * ONE_DAY;
splitEvents.push(event);

for (let splitEvent of splitEvents) {
Expand Down

0 comments on commit 2509ddc

Please sign in to comment.