-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] Digital Clock with DST time zone generates inaccurate timeOptions
for the "fall back" and "spring forward" days
#10783
Comments
timeOptions
for the "fall back" and "spring forward" daystimeOptions
for the "fall back" and "spring forward" days
Thank you for creating this issue! 🙏 |
Confirming that this seems to be the expected behavior for I've found a workaround for |
@LukasTy thank you so much for the response and taking the time to whip up such a nice demo of the adapters! However, I still believe the issue is not specific to any of the Adapters. From your demo, the bug is still evident on both "Fall-back" and "Spring-forward" pickers for Dayjs. Fall Back ends at
|
@LukasTy I added it to the board |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @sbriceland How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: https://codesandbox.io/s/pensive-boyd-n6kq3f?file=/src/demo.tsx
Steps:
01:00 AM
and01:30 PM
appear twice. This is a much smaller issue, but would be nice to address as well.02:00 AM
&02:30 AM
do no appear. However, one could argue that this is 100% correct. Works for our scenario, but just wanted to point it out for others to make that decision.Current behavior
When opening the "Fall-back" picker set to November 5th, 2023, the time options stop at 10:30 PM.
11:00 PM
&11:30PM
are missing.When opening the "Spring-forward" picker set to March 10th, 2024, the time options shows extra options for which are technically for the next day:
12:00 AM
&12:30 AM
at the end of the time options list are both for November 11th.Expected behavior
When opening the "Fall-back" picker set to November 5th, 2023, all time steps of the day should be available to select.
01:00 AM &
01:30 AM` in demo)When opening the "Spring-forward" picker set to November 5th, 2023, only time steps for the selected day should be available.
Context
The bug appears to be in the creation of
timeOptions
:Not completely related and
Your environment
npx @mui/envinfo
Search keywords: DigitalClock timezone DST daylight luxon
The text was updated successfully, but these errors were encountered: