react-tailwindcss-datepicker icon indicating copy to clipboard operation
react-tailwindcss-datepicker copied to clipboard

The days of the week do not match reality when there are multiple instances of the Datepicker and the i18n parameter is enabled

Open miquelgomis opened this issue 2 years ago • 1 comments

I'm using the Datepicker in several places on the same page of my React application. In all of them, I have the i18n parameter enabled to customize the language. When this parameter is enabled, only the first instance works correctly; from the second instance onwards, the first day of every month always starts on a Monday, making the days of the week not match reality. To solve this problem, I have removed the i18n parameter and am temporarily displaying the calendars in English.

The first instance works correctly: image

From the second instance ondwards: July 1st, 2023, was a Saturday, and the 7th was actually a Friday, not a Sunday image

Can you give me a hand? Thanks for your help

miquelgomis avatar Jul 07 '23 12:07 miquelgomis

Hey there, I have the same issue, I would to hear if you have found anything that would fix this !

bde-maze avatar Aug 21 '23 14:08 bde-maze

Hi @miquelgomis, @bde-maze 👋. Sorry for the late reply. But I think this problem is already solved.

onesine avatar Aug 13 '24 11:08 onesine