[pickers][DateTimeRangePicker] Polish locale from dayjs breaks datetime format in DateTimeRangePicker since v.7.10.0 #14334
Labels
bug 🐛
Something doesn't work
component: DateTimeRangePicker
The React component
component: pickers
This is the name of the generic UI component, not the React module!
plan: Pro
Impact at least one Pro user
Steps to reproduce
Link to live example:
Correct in 7.9.0: https://codesandbox.io/p/sandbox/mui-daterangepicker-format-issue-7-9-0-jg2c5f
Incorrect in 7.10.0: https://codesandbox.io/p/sandbox/mui-datetimerangepicker-format-issue-7-10-0-6hdc22
Incorrect in 7.14.0: https://codesandbox.io/p/sandbox/mui-datetimerangepicker-format-issue-latest-cdnst2
The issue appears when using polish locale:
Current behavior
On x-date-pickers version >= 7.10.0 the picker displays date in format
02 00:00 – 03 00:00
, not showing month and year.Expected behavior
On x-date-pickers version <= 7.9.0 the picker was working correctly displaying format:
02.02.2020 00:00 – 03.02.2020 00:00
Context
No response
Your environment
Version that works:
"dayjs": "1.11.13",
"@mui/material": "5.16.7",
"@mui/x-date-pickers-pro": "7.9.0"
Version that doesn't work:
"dayjs": "1.11.13",
"@mui/material": "5.16.7",
"@mui/x-date-pickers-pro": "7.10.0"
Search keywords: locale, dayjs
Order ID: Order 80141
The text was updated successfully, but these errors were encountered: