nextui-org / nextui

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

[BUG] - Date / Calender components not updating correctly with locale #3142

Open bebbs-dmt opened 1 month ago

bebbs-dmt commented 1 month ago

NextUI Version

2.4.0

Describe the bug

When updating the locale to use an international calendar, the date and calendar components don't update completely, if at all. This may be related to Next.js, because the CodeSandbox environment for this example seems to work fine, and that uses standard React.

The calendar seems to partially update, this is observable in the stackblitz link below.

Your Example Website or App

https://stackblitz.com/edit/stackblitz-starters-caucmz?file=app%2Fpage.tsx

Steps to Reproduce the Bug or Issue

  1. Open the stackblitz link and wait for the page to compile and load.
  2. Observe that the date picker has not properly updated to use the international calendar.

Expected behavior

Date and calendar components should be updating completely to use the specified locale.

Screenshots or Videos

No response

Operating System Version

Windows 11, developing in WSL Ubuntu 22.04 LTS

Browser

Chrome

linear[bot] commented 1 month ago

ENG-933 [BUG] - Date / Calender components not updating correctly with locale

wingkwong commented 1 month ago

Able to reproduce in next / vite app.

juank1809 commented 1 month ago

Can I work on this issue? :)

wingkwong commented 1 month ago

@juank1809 assigned. feel free to contact us in Discord if you need any help.

wingkwong commented 1 week ago

@juank1809 any updates? if not, I'd like to take over it since I'm working on similar issue.

juank1809 commented 1 week ago

Hi! I have been trying to resolve this issue for weeks but could not accomplish it. I'm sorry. Feel free to take over :) @wingkwong

MohammadHarish52 commented 5 days ago

image

used the Date library i guess this can work