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

moment: use this.locale when specified #630

Merged
merged 1 commit into from
Oct 19, 2022

Conversation

alexfauquette
Copy link
Contributor

@alexfauquette alexfauquette commented Oct 19, 2022

Related to mui/mui-x#6547

When importing multiple locales, the default moment local is the last one.

The adapter.getFormatHelperText() will apply the default moment locale instead of the one provided to the adapter.

Fixed by

-this.moment.localeData()
+this.moment.localeData(this.getCurrentLocaleCode())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants