Skip to content

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

@miquelgomis

Description

@miquelgomis

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions