-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[scheduler] Timezone issue 2: use render timezone in nowUpdatedEveryMinute and date generating selectors
#20411
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
Merged
rita-codes
merged 33 commits into
mui:master
from
rita-codes:20390-scheduler-timezone-issue-2-use-render-timezone-in-nowupdatedeveryminute-and-date-generating-selectors
Nov 26, 2025
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
f305578
add timezone prop and state
rita-codes bfa73b1
fix jsdoc
rita-codes da12d37
Merge branch 'master' into 20389-scheduler-timezone-issue-1-add-timez…
rita-codes 490f29f
fix types
rita-codes 6452639
Merge branch 'master' into 20389-scheduler-timezone-issue-1-add-timez…
rita-codes d2b854b
Merge branch 'master' into 20389-scheduler-timezone-issue-1-add-timez…
rita-codes 72cb320
fix types
rita-codes e39068b
Merge remote-tracking branch 'upstream/master' into 20389-scheduler-t…
rita-codes 3a177fc
Merge branch 'master' into 20389-scheduler-timezone-issue-1-add-timez…
rita-codes a00421f
Merge branch '20389-scheduler-timezone-issue-1-add-timezone-prop-and-…
rita-codes b3cc6c5
add timezone utils + tests
rita-codes 7391509
Merge branch 'master' into 20390-scheduler-timezone-issue-2-use-rende…
rita-codes f95dc67
fix
rita-codes 738a9a3
fix
rita-codes 97d4e8b
Merge branch 'master' into 20390-scheduler-timezone-issue-2-use-rende…
rita-codes cca0540
Merge remote-tracking branch 'upstream/master' into 20390-scheduler-t…
rita-codes 24fed37
Merge branch 'master' into 20390-scheduler-timezone-issue-2-use-rende…
rita-codes bb62f23
Merge branch 'master' into 20390-scheduler-timezone-issue-2-use-rende…
rita-codes e08db6e
Merge branch 'master' into 20390-scheduler-timezone-issue-2-use-rende…
rita-codes c19adf1
fix tests
rita-codes c20b106
fix tests
rita-codes e41cddc
fix tests
rita-codes 3af0250
fix
rita-codes 4c27452
Merge branch 'master' into 20390-scheduler-timezone-issue-2-use-rende…
rita-codes 41273d6
Merge branch 'master' into 20390-scheduler-timezone-issue-2-use-rende…
rita-codes c244c02
fix
rita-codes 096d8c5
fix
rita-codes e1ac915
fix
rita-codes 4d18081
fix
rita-codes d2d3431
fix
rita-codes f0e603c
fix
rita-codes d0777b1
Merge branch 'master' into 20390-scheduler-timezone-issue-2-use-rende…
rita-codes 7cc5ad0
fix
rita-codes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
9 changes: 7 additions & 2 deletions
9
packages/x-scheduler-headless/src/scheduler-selectors/schedulerOtherSelectors.ts
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { TemporalTimezone } from '../base-ui-copy/types'; | ||
| import { Adapter } from '../use-adapter'; | ||
|
|
||
| export function getNowInRenderTimezone(adapter: Adapter, timezone: TemporalTimezone) { | ||
| return adapter.now(timezone); | ||
| } | ||
|
|
||
| export function getStartOfTodayInRenderTimezone(adapter: Adapter, timezone: TemporalTimezone) { | ||
| return adapter.startOfDay(getNowInRenderTimezone(adapter, timezone)); | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.