Skip to content

Commit ae3495b

Browse files
feat(datetime): update weekdays abbreviation for ionic theme
1 parent b3e869e commit ae3495b

File tree

1 file changed

+3
-3
lines changed
  • core/src/components/datetime/utils

1 file changed

+3
-3
lines changed

core/src/components/datetime/utils/data.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ const hour24 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1
6565
/**
6666
* Given a locale and a theme,
6767
* return an array with formatted days
68-
* of the week. iOS should display days
69-
* such as "Mon" or "Tue".
68+
* of the week. iOS and Ionic themes should
69+
* display days such as "Mon" or "Tue".
7070
* MD should display days such as "M"
7171
* or "T".
7272
*/
@@ -76,7 +76,7 @@ export const getDaysOfWeek = (locale: string, theme: Theme, firstDayOfWeek = 0)
7676
* ion-datetime assumes weeks start on Sunday,
7777
* but is configurable via `firstDayOfWeek`.
7878
*/
79-
const weekdayFormat = theme === 'ios' ? 'short' : 'narrow';
79+
const weekdayFormat = theme === 'md' ? 'narrow' : 'short';
8080
const intl = new Intl.DateTimeFormat(locale, { weekday: weekdayFormat });
8181
const startDate = new Date('11/01/2020');
8282
const daysOfWeek = [];

0 commit comments

Comments
 (0)