[pickers] Calendar UI bug when using dayjs and it's daylight savings #12463
Labels
component: pickers
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
Steps to reproduce
https://stackblitz.com/edit/react-smshgm-ywvhu3?file=Demo.tsx
Steps:
dayjs
timezone to a timezone behind ESTdayjs
calendar in MarchCurrent behavior
When the dayjs timezone (in this case, set to
US/Arizona
in the sandbox) is behind the local timezone, the March calendar for theDatePicker
component has some UI issues (there are two dates labeled the 9th, the spacing is odd, and the first couple of days are labeled incorrectly).Expected behavior
This issue cannot be reproduced using the
moment
adapter (the bottom calendar) which has the expected behaviour.Context
No response
Your environment
npx @mui/envinfo
Search keywords: dayjs, datepicker, daylight savings, timezones
The text was updated successfully, but these errors were encountered: