mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.55k stars 1.33k forks source link

[pickers] Use `props.referenceDate` timezone when `props.value` and `props.defaultValue` are not defined #15532

Closed flaviendelangle closed 23 hours ago

flaviendelangle commented 1 day ago

Part of #14809

I took the opportunity to test this hook I will do a 2nd PR to add a warning when passing timezone="UTC"

mui-bot commented 1 day ago

Deploy preview: https://deploy-preview-15532--material-ui-x.netlify.app/

Generated by :no_entry_sign: dangerJS against d3a6eb68ee841a1f40e8001d48f06c05372a61f2

flaviendelangle commented 23 hours ago

WDYT, does it make sense to cherry-pick it to v7? 🤔

Nothing preventing us from cherry-picking it yes :+1:

github-actions[bot] commented 23 hours ago

Cherry-pick PRs will be created targeting branches: v7.x

LukasTy commented 23 hours ago

Nothing preventing us from cherry-picking it yes 👍

Only the TDate -> PickerValidDate refactor. 🙈 😆