Open duyvinh229148 opened 1 month ago
@duyvinh229148 I used this code , and datePicker appears to be in dd/mm/yyyy
format.
<NextUIProvider
locale="en-GB"
navigate={(path: string) => {
router.push(path);
}}
>
<NextThemesProvider {...themeProps}>{children}</NextThemesProvider>
</NextUIProvider>
here are the codesandbox link: codesandbox
may also check with other locales as well, e.g. en-US. ref: https://github.com/nextui-org/nextui/issues/3636
pt-BR is also not working for dd/MM/yyyy which is our default format
pt-BR doesnt work either
@thaynarbo eu pesquisei sobre como o react-aria funciona, e o problema é a linguagem do seu navegador. Ele atualiza a formatação do campo de acordo com a linguagem do navegador. Teste com o navegador em português.
English:
@wingkwong I researched how react-aria works, and the problem is your browser language. It updates the field formatting according to the browser language. Test with the browser in Portuguese. This is the only "solution" that I have found.
NextUI Version
2.4.6
Describe the bug
My project using Nextjs, in layout, I use <NextUIProvider locale={"en-GB"}>{children}, but when using DatePicker, the date is still showing MM/dd/yyyy, while I google 'en-GB', the date format is 'dd/MM/yyyy'. I realy need that date format, because my country hate MM/dd/yyyy
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
The date format is dd/MM/yyyy
Screenshots or Videos
No response
Operating System Version
Linux - Fedora 39
Browser
Chrome