We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f61895 commit 52b8fa6Copy full SHA for 52b8fa6
src/material/core/datetime/native-date-adapter.ts
@@ -8,6 +8,7 @@
8
9
import {Platform} from '@angular/cdk/platform';
10
import {Inject, Injectable, Optional} from '@angular/core';
11
+import {getLocaleFirstDayOfWeek} from '@angular/common';
12
import {DateAdapter, MAT_DATE_LOCALE} from './date-adapter';
13
14
// TODO(mmalerba): Remove when we no longer support safari 9.
@@ -146,8 +147,7 @@ export class NativeDateAdapter extends DateAdapter<Date> {
146
147
}
148
149
getFirstDayOfWeek(): number {
- // We can't tell using native JS Date what the first day of the week is, we default to Sunday.
150
- return 0;
+ return getLocaleFirstDayOfWeek(this.locale);
151
152
153
getNumDaysInMonth(date: Date): number {
0 commit comments