Skip to content

Commit b43b6d8

Browse files
authored
Merge pull request #2450 from dpalou/MOBILE-3466
MOBILE-3466 calendar: Fix today if server has different timezone
2 parents 743aa6c + 98cf9f9 commit b43b6d8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/addon/calendar/components/calendar/calendar.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export class AddonCalendarCalendarComponent implements OnInit, OnChanges, DoChec
222222
let isPast = true;
223223

224224
this.weeks.forEach((week) => {
225-
week.days.some((day) => {
225+
week.days.forEach((day) => {
226226
day.istoday = day.mday == currentDay;
227227
day.ispast = isPast && !day.istoday;
228228
isPast = day.ispast;
@@ -231,11 +231,7 @@ export class AddonCalendarCalendarComponent implements OnInit, OnChanges, DoChec
231231
day.events.forEach((event) => {
232232
event.ispast = this.isEventPast(event);
233233
});
234-
235-
return true;
236234
}
237-
238-
return day.istoday;
239235
});
240236
});
241237
}

0 commit comments

Comments
 (0)