nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.59k stars 1.41k forks source link

[BUG] - Calendar #3063

Closed Sammy-coding closed 2 months ago

Sammy-coding commented 4 months ago

NextUI Version

2.0.6 next-ui-org/date-picker

Describe the bug

When the locale is ar-SA, the calendar system that shows up is hijri which is islamic-umalqura but it switches on selecting month and year (in the showMonthAndYearPickers) to gregorian calendar system.

Your Example Website or App

https://github.com/Sammy-coding/calendar

Steps to Reproduce the Bug or Issue

click on the showMonthAndYearPickers Observe the year and month before selection then Select month Select Year The month and year changes

Expected behavior

As a user, i am expecting that the calendar system stays hijri which is islamic-umalqura but it changes back to gregorian.

Screenshot 2024-05-23 at 12 43 16 Screenshot 2024-05-23 at 12 43 16

Screenshots or Videos

No response

Operating System Version

macOS

Browser

Chrome

linear[bot] commented 4 months ago

ENG-881 [BUG] - Calendar

wingkwong commented 4 months ago

Please follow the guide to setup NextUIProvider and set up locale.

Sammy-coding commented 4 months ago

Even after using the nextuiprovider, the issue still persist. The calendar still switches after selecting the year. It switches from the hijri calendar system to gregorian. It doesn't stay at hijri month and year. I have pushed the changes you said i should do so you can also see for yourself

Sammy-coding commented 4 months ago

Hi @wingkwong Is there a fix for this issue

wingkwong commented 3 months ago

@Sammy-coding I'm working on it.