mui-x
mui-x copied to clipboard
[scheduler] Timezone Issue 7: Add timezone field to the event model
Current behavior:
- We accept
TemporalSupportedObjectas start/end values - Those objects may not contain timezone info (e.g. 2025-03-05T12:00:00)
- When DST or cross-timezone rendering happens, we cannot know the original timezone
Solution:
- Add an explicit
timezonefield to SchedulerEvent - This gives the engine a reliable data timezone
Benefits:
| Date value | Has TZ info? | Event timezone provided? | Result |
|---|---|---|---|
"2025-03-14T02:00:00Z" |
:heavy_check_mark: | optional | Treated as UTC → converted to the event timezone |
"2025-03-14T02:00:00-05:00" |
:heavy_check_mark: | optional | Treated as UTC-5 → normalized to the event timezone |
"2025-03-14T02:00:00" |
:x: | :heavy_check_mark: | Interpreted as 02:00 in the event’s timezone |
"2025-03-14T02:00:00" |
:x: | :x: | Interpret as 02:00 in the adapter’s default timezone |