-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Year range in localized Datepicker is not correct #4674
Comments
I have this problem too ,the day is not correct either ! e.g it says 22 tir while on the calendar 12 tir is active. |
@alitaheri Any chance you could comment on this? Thanks. |
I haven't used this component for my application nor have I used any other date pickers for this purpose. It would be great if this component could be tweaked to support Persian calendar system. I don’t really know how to do it though, I never touched this component, sorry folks 😅 😅 |
hi @mehdijjz |
@saeedtabrizi Any update on the PR? |
I'm closing as I think it's a duplicate of #5101. |
Year Range in Localized Datepicker is not correct . while you set a localized calendar like the persian calendar just you must see year button for localized range of years .
it seems in CalendarYear.js file and getYears method the min and max value for year range not localized .
Steps to reproduce
1.declare
const dtf_fa = Intl.DateTimeFormat;
2. in render method
<DatePicker hintText="Portrait Dialog" DateTimeFormat={dtf_fa} locale="fa-IR-u-ca-persian" />
3. run and see year button value . its shows different number .(in my case show 2016 that equals to localized persian calendar 1395) .
Versions
The text was updated successfully, but these errors were encountered: