Skip to content

Commit

Permalink
fix : Dispaly all day events planned for the current day on the agend…
Browse files Browse the repository at this point in the history
…a gadget in space stream page - EXO-65143 (#558)

This change is going to Display all-day events planned for the current day on the agenda gadget in the Space Stream page
  • Loading branch information
sofyenne committed Jul 13, 2023
1 parent 6abdbec commit 89d1951
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default {
let periodStartDate = new Date(this.periodStartDate);
periodStartDate = new Date(periodStartDate.getFullYear(), periodStartDate.getMonth(), periodStartDate.getDate());
if (new Date(eventStartDate.startDate).getTime() > new Date(periodStartDate).getTime()) {
if (new Date(eventStartDate.startDate).getTime() > new Date(periodStartDate).getTime() || (new Date(eventStartDate.startDate).getTime() === new Date(periodStartDate).getTime() && event.allDay)) {
count = this.addEventByDateInMap(eventStartDate, event.startDate, eventsByDates, count);
}
Expand Down

0 comments on commit 89d1951

Please sign in to comment.