From 98cf9f959f475fa2c09c985cbe8b9975805f69cd Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 3 Jul 2020 06:46:37 +0200 Subject: [PATCH] MOBILE-3466 calendar: Fix today if server has different timezone --- src/addon/calendar/components/calendar/calendar.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/addon/calendar/components/calendar/calendar.ts b/src/addon/calendar/components/calendar/calendar.ts index 23ffe640f..1881b860e 100644 --- a/src/addon/calendar/components/calendar/calendar.ts +++ b/src/addon/calendar/components/calendar/calendar.ts @@ -222,7 +222,7 @@ export class AddonCalendarCalendarComponent implements OnInit, OnChanges, DoChec let isPast = true; this.weeks.forEach((week) => { - week.days.some((day) => { + week.days.forEach((day) => { day.istoday = day.mday == currentDay; day.ispast = isPast && !day.istoday; isPast = day.ispast; @@ -231,11 +231,7 @@ export class AddonCalendarCalendarComponent implements OnInit, OnChanges, DoChec day.events.forEach((event) => { event.ispast = this.isEventPast(event); }); - - return true; } - - return day.istoday; }); }); }