MOBILE-3784 calendar: Fix a11y title of days
parent
ee4e8f6b05
commit
e2d2e04f41
|
@ -526,6 +526,7 @@ class AddonCalendarMonthSlidesItemsManagerSource extends CoreSwipeSlidesDynamicI
|
||||||
const weeks = result.weeks as AddonCalendarWeek[];
|
const weeks = result.weeks as AddonCalendarWeek[];
|
||||||
const currentDay = moment().date();
|
const currentDay = moment().date();
|
||||||
const currentTime = CoreTimeUtils.timestamp();
|
const currentTime = CoreTimeUtils.timestamp();
|
||||||
|
const dayMoment = moment(month.moment);
|
||||||
|
|
||||||
const preloadedMonth: PreloadedMonth = {
|
const preloadedMonth: PreloadedMonth = {
|
||||||
...month,
|
...month,
|
||||||
|
@ -538,7 +539,7 @@ class AddonCalendarMonthSlidesItemsManagerSource extends CoreSwipeSlidesDynamicI
|
||||||
await Promise.all(weeks.map(async (week) => {
|
await Promise.all(weeks.map(async (week) => {
|
||||||
await Promise.all(week.days.map(async (day) => {
|
await Promise.all(week.days.map(async (day) => {
|
||||||
day.periodName = CoreTimeUtils.userDate(
|
day.periodName = CoreTimeUtils.userDate(
|
||||||
month.moment.unix() * 1000,
|
dayMoment.date(day.mday).unix() * 1000,
|
||||||
'core.strftimedaydate',
|
'core.strftimedaydate',
|
||||||
);
|
);
|
||||||
day.eventsFormated = day.eventsFormated || [];
|
day.eventsFormated = day.eventsFormated || [];
|
||||||
|
|
Loading…
Reference in New Issue