From e2d2e04f41114615bbdd8e5dba87f1bf1398afca Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 15 Nov 2022 16:11:01 +0100 Subject: [PATCH] MOBILE-3784 calendar: Fix a11y title of days --- src/addons/calendar/components/calendar/calendar.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/addons/calendar/components/calendar/calendar.ts b/src/addons/calendar/components/calendar/calendar.ts index 81b65c10e..1e8bf8d73 100644 --- a/src/addons/calendar/components/calendar/calendar.ts +++ b/src/addons/calendar/components/calendar/calendar.ts @@ -526,6 +526,7 @@ class AddonCalendarMonthSlidesItemsManagerSource extends CoreSwipeSlidesDynamicI const weeks = result.weeks as AddonCalendarWeek[]; const currentDay = moment().date(); const currentTime = CoreTimeUtils.timestamp(); + const dayMoment = moment(month.moment); const preloadedMonth: PreloadedMonth = { ...month, @@ -538,7 +539,7 @@ class AddonCalendarMonthSlidesItemsManagerSource extends CoreSwipeSlidesDynamicI await Promise.all(weeks.map(async (week) => { await Promise.all(week.days.map(async (day) => { day.periodName = CoreTimeUtils.userDate( - month.moment.unix() * 1000, + dayMoment.date(day.mday).unix() * 1000, 'core.strftimedaydate', ); day.eventsFormated = day.eventsFormated || [];