MOBILE-3784 calendar: Fix a11y title of days

main
Dani Palou 2022-11-15 16:11:01 +01:00
parent ee4e8f6b05
commit e2d2e04f41
1 changed files with 2 additions and 1 deletions

View File

@ -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 || [];