mantinedev / mantine

A fully featured React components library
https://mantine.dev
MIT License
26.55k stars 1.88k forks source link

DatePicker wrong show date on change local #5343

Closed aalirezamoradii closed 10 months ago

aalirezamoradii commented 10 months ago

What package has an issue?

@mantine/dates

Describe the bug

When set DatesProvider settings based on fa local and import dayjs fa local Still, the date is selected based on the default settings and no changes are made

Screen Shot 2023-11-29 at 2 27 46 AM

What version of @mantine/ packages do you have in package.json? (Note that all @mantine/ packages must have the same version in order to work correctly)

7.2.2

If possible, please include a link to a codesandbox with a minimal reproduction

No response

Do you know how to fix the issue

No

Do you want to send a pull request with a fix?

No

Possible fix

Use jalali calendar

rtivital commented 10 months ago

Please provide a more clear issue description and a sandbox with a reproduction. Template – https://codesandbox.io/s/mantine-template-9ze89?file=/src/App.tsx

rtivital commented 10 months ago

You are welcome to reopen the issue if you can provide a reproduction and more description. Note that jalali calendar is not supported and is not planned to be added.

aalirezamoradii commented 10 months ago

https://codesandbox.io/p/sandbox/mantine-dateprovider-xccf8m

rtivital commented 10 months ago

jalali calendar is not supported and is not planned to be added.

aalirezamoradii commented 10 months ago

Thanks for response

aalirezamoradii commented 10 months ago

https://www.npmjs.com/package/mantine-dates-jalali

Is it possible to add these codes to the main code? https://github.com/aalirezamoradii/mantine/tree/Jalali