-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
this my html
<input matInput [matDatepicker]="shareUpdateDate" formControlName="shareUpdateDate">
<mat-datepicker-toggle matSuffix [for]="shareUpdateDate"></mat-datepicker-toggle>
<mat-datepicker #shareUpdateDate></mat-datepicker>
</mat-form-field>
this my ts
import { DateAdapter } from '@angular/material/core';
ngOnInit() {
this.dateAdapter.setLocale('ar-SA');
}
my problem is
it display current month and current today wrong , also when you click on any day it display another one in input field , for example when click on 3 Ramadan , it display 16 Moharam
is there any setting to fix it ?
Reproduction
StackBlitz link:
Steps to reproduce:
1.
2.
Expected Behavior
when click on 3 Ramadan it should display 3 Ramadan i input
Actual Behavior
when click on 3 Ramadan it should display 16 Moharam
Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
Metadata
Metadata
Assignees
Labels
needs triageThis issue needs to be triaged by the teamThis issue needs to be triaged by the team