mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.71k stars 32.23k forks source link

[DatePicker] Day order is not correct for jalali locale #5485

Closed manishoo closed 7 years ago

manishoo commented 7 years ago

Description

when the locale is set to fa-IR (or maybe some other locales too), although the dates are correct but the order of them is not correct. for example in gregorian calendar it always starts with the first day of month but in jalali it starts with the day equivalent to first day of month in gregorian, like 9 of Azar.

Images & references

in gregorian (en-US): capture2 in jalaali (fa-IR) capture

We're planning on using this in a big enterprise market, so this is very important for us. thanks for all your great efforts and hard work.

Versions

saeedjalalisj commented 7 years ago

I have this issue too. Please fix it guys. :smile:

soolmaz commented 7 years ago

how to get Gregorian dates from jalali date-picker in material-ui?

alitaheri commented 7 years ago

@mehdijjz @saeedjalali1 @soolmaz If this is still relevant I've managed to solve it. There are still a few errors remaining, like year selection and year formatting. But it works for a couple of years before and after today.

I've built a repository and submitted a PR here. Help me test the correctness please.

ak14350 commented 5 years ago

when i change locale in react-native datepicker, material ui not working what can i do ?

joshwooding commented 5 years ago

@ak14350 We don’t support react-native?