Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pickers] Calendar UI bug when using dayjs and it's daylight savings #12463

Closed
giavinh79 opened this issue Mar 15, 2024 · 2 comments
Closed

[pickers] Calendar UI bug when using dayjs and it's daylight savings #12463

giavinh79 opened this issue Mar 15, 2024 · 2 comments
Labels
component: pickers This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists

Comments

@giavinh79
Copy link

giavinh79 commented Mar 15, 2024

Steps to reproduce

https://stackblitz.com/edit/react-smshgm-ywvhu3?file=Demo.tsx

Steps:

  1. Set local timezone to EST
  2. Set dayjs timezone to a timezone behind EST
  3. Open dayjs calendar in March

Current behavior

When the dayjs timezone (in this case, set to US/Arizona in the sandbox) is behind the local timezone, the March calendar for the DatePicker 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).

image

Expected behavior

This issue cannot be reproduced using the moment adapter (the bottom calendar) which has the expected behaviour.

image

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: dayjs, datepicker, daylight savings, timezones

@giavinh79 giavinh79 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 15, 2024
@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label Mar 15, 2024
@alexfauquette alexfauquette added duplicate This issue or pull request already exists and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 19, 2024
@alexfauquette
Copy link
Member

Thanks for reporting this. I'm closing because it's a duplicate of #10584

A PR has been open 2 weeks ago to work on this topic, please follow the other issue to get news about the fix

Copy link

⚠️ This issue has been closed.
If you have a similar problem, please open a new issue and provide details about your specific problem.
If you can provide additional information related to this topic that could help future readers, please feel free to leave a comment.

How did we do @giavinh79?
Your experience with our support team matters to us. If you have a moment, please share your thoughts through our brief survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants