You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select a date from the calendar in the first datepicker
Validate first date picker
Then copy paste the date in the second
Validate the second date picker
If you choose 01/02/2018 (1st of february), you get these result :
first : Thu Feb 01 2018 00:00:00 GMT+0100 (Paris, Madrid)
second : Tue Jan 02 2018 00:00:00 GMT+0100 (Paris, Madrid)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
ng 5.1 / material2 5.0.0
Is there anything else we should know?
The text was updated successfully, but these errors were encountered:
Bug, feature request, or proposal:
The datepicker component doesn't use locale if the user writes the date directly in the input, without choosing date from calendar popup
What is the expected behavior?
The date should be parsed with the locale set up in module
What is the current behavior?
The date uses the default locale
What are the steps to reproduce?
Here is a stackblitz with french locale :
https://stackblitz.com/edit/angular-material2-issue-rb6xvc?file=app/app.component.ts
Select a date from the calendar in the first datepicker
Validate first date picker
Then copy paste the date in the second
Validate the second date picker
If you choose 01/02/2018 (1st of february), you get these result :
first : Thu Feb 01 2018 00:00:00 GMT+0100 (Paris, Madrid)
second : Tue Jan 02 2018 00:00:00 GMT+0100 (Paris, Madrid)
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
ng 5.1 / material2 5.0.0
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: