Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting moment plugin in mat-datepicker #10972

Closed
m-farahmand opened this issue Apr 24, 2018 · 3 comments
Closed

Supporting moment plugin in mat-datepicker #10972

m-farahmand opened this issue Apr 24, 2018 · 3 comments
Assignees

Comments

@m-farahmand
Copy link

m-farahmand commented Apr 24, 2018

Bug, feature request, or proposal:

With change of Local-Id to fa-IR mat-datepicker showing wrong days of month and with selecting year or month name it jumps to the next of them.

What is the expected behavior?

To accept moment plugin e.g. moment-jalaali.

What are the steps to reproduce?

link

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

5.2.x

@mmalerba
Copy link
Contributor

The MomentDateAdapter only supports the Gregorian Calendar. I've seen some users post about solutions they were working on for other calendars, including one who was working on support for the Jalaali Calendar (#5972 - https://github.com/peymanebrahimi/AngularMaterialJalaliDate) and one who was working on generic support for other calendars: (#2519 - https://github.com/dhlab-basel/JDNConvertibleCalendarDateAdapter).

We consider this outside of the scope of Angular Material, but we hope the community will continue to share custom DateAdapter implementations they've worked on, so others can benefit too.

@m-farahmand
Copy link
Author

m-farahmand commented Apr 25, 2018

@mmalerba Thx it working

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants