Skip to content
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

[DatePicker] Fix false-positive when validating mask in Safari #23602

Merged
merged 2 commits into from Nov 19, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Nov 18, 2020

false-positive was observed periodically during #23475 (e.g. https://app.circleci.com/pipelines/github/mui-org/material-ui/26775/workflows/0b1a4c14-a94d-448f-8932-3d0ca6a4d7eb/jobs/195587).

The underlying issue is the same that required #23475: Safari assumes UTC if the timezone is omitted in iso 8601 date formats. We're fixing it by deferring to the date adapters. This means that date-fns still has this false positive until @date-io/date-fns#date uses date-fns#parseISO under the hood (or rather fixes the Safari quirk). See dmtrKovalenko/date-io#479 (comment)

@eps1lon eps1lon added bug 🐛 Something doesn't work component: date picker This is the name of the generic UI component, not the React module! labels Nov 18, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Nov 18, 2020

Details of bundle changes

Generated by 🚫 dangerJS against a707175

@oliviertassinari oliviertassinari changed the title [pickers] Fix false-positive when validating mask in Safari [DatePicker] Fix false-positive when validating mask in Safari Nov 18, 2020
@eps1lon eps1lon merged commit 1a6e92c into mui:next Nov 19, 2020
@eps1lon eps1lon deleted the test/mask-test branch November 19, 2020 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: date picker This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants