diff --git a/apps/skolplattformen-app/components/week.component.tsx b/apps/skolplattformen-app/components/week.component.tsx index 893223ec..40be97f8 100644 --- a/apps/skolplattformen-app/components/week.component.tsx +++ b/apps/skolplattformen-app/components/week.component.tsx @@ -107,13 +107,7 @@ export const Day = ({ weekDay, lunch, lessons }: DayProps) => { } export const Week = ({ child }: WeekProps) => { - const locale = LanguageService.getLocale() - moment.updateLocale(locale, { - week: { - dow: 1, // Monday is the first day of the week. - }, - }) - moment.locale(locale) + moment.locale(LanguageService.getLocale()) const days = moment.weekdaysShort().slice(1, 6) const displayDate = getMeaningfulStartingDate(moment()) @@ -165,7 +159,10 @@ export const Week = ({ child }: WeekProps) => { <> {weekDay} - {displayDate.startOf('week').add(index, 'day').format('D')} + {displayDate + .startOf('isoWeek') + .add(index, 'day') + .format('D')} )}