nextui-org / nextui

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

[BUG] - week day incorrect when using I18nProvider #4216

Open jeanp117 opened 16 hours ago

jeanp117 commented 16 hours ago

NextUI Version

2.4.8

Describe the bug

When using the Envelope DatePicker component wrapped with:

`

`

I noticed a discrepancy in the first day of the week:

For es-CO (Colombia), November 24, 2014 is displayed as Monday (Lunes), but it should be Sunday (Domingo). image

For es-ES (Spain), the component correctly displays Monday (Lunes) as the first day of the week. image

This suggests that the locale settings for es-CO may not correctly align with the expected Colombian calendar conventions.

Using es-CO (Colombia) shows 24-nov-2014 as monday ( L ) but it should be sunday ( D )

Your Example Website or App

https://codesandbox.io/p/devbox/datepicker-bug-z9hxjr

Steps to Reproduce the Bug or Issue

Use i18n provider as follows `

`

open the date picker and check the day of week

Expected behavior

The day of the week is globally synchronized, so November 24, 2024, is Sunday everywhere.

Screenshots or Videos

No response

Operating System Version

Windows

Browser

Chrome

linear[bot] commented 16 hours ago

ENG-1644 [BUG] - week day incorrect when using I18nProvider