[scheduler] Timezone Issue 9: check render positioning on dst days#20900
Merged
rita-codes merged 10 commits intomui:masterfrom Jan 14, 2026
Conversation
…imezone-issue-9---check-render-positioning-on-dst-days
…imezone-issue-9---check-render-positioning-on-dst-days
|
Deploy preview: https://deploy-preview-20900--material-ui-x.netlify.app/ Bundle size report
|
…ender-positioning-on-dst-days
packages/x-scheduler-headless/src/utils/useElementPositionInCollection.ts
Outdated
Show resolved
Hide resolved
flaviendelangle
approved these changes
Jan 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The Scheduler is rendered as a fixed 24h grid per day (Calendar and Timeline), but during DST transitions a day is not always 24h in real time.
When events are positioned using timestamps, DST days end up being visually shorter or longer, causing events around the DST jump to appear incorrectly sized and positioned.
What
This PR switches the timeline positioning logic from milliseconds to a stable “minutes in the grid” model.
Events are positioned using:
minutesInDay)This keeps the layout visually consistent and predictable, even on DST transition days.
Docs and examples were updated to explicitly cover a DST case (Europe/Paris).