Skip to content

Commit

Permalink
fix(date): return unmodified DateTimeFormat (#19017)
Browse files Browse the repository at this point in the history
fixes #19013
  • Loading branch information
blalan05 authored Jan 13, 2024
1 parent 520b765 commit f2dd5c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vuetify/src/composables/date/adapters/vuetify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,7 @@ function getWeekdays (locale: string) {
return createRange(7).map(i => {
const weekday = new Date(sundayJanuarySecond2000)
weekday.setDate(sundayJanuarySecond2000.getDate() + daysFromSunday + i)
const formattedDay = new Intl.DateTimeFormat(locale, { weekday: 'short' }).format(weekday)
return formattedDay.charAt(0).toUpperCase() + formattedDay.slice(1)
return new Intl.DateTimeFormat(locale, { weekday: 'narrow' }).format(weekday)
})
}

Expand Down

0 comments on commit f2dd5c0

Please sign in to comment.