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

[pickers][DatePicker] No support for Buddhist Era year section ('BBBB') #16972

Open
jrock2004 opened this issue Mar 14, 2025 · 2 comments
Open
Labels
bug 🐛 Something doesn't work component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! l10n localization

Comments

@jrock2004
Copy link

jrock2004 commented Mar 14, 2025

Steps to reproduce

Steps:

  1. Codesandbox: https://codesandbox.io/p/sandbox/7vh5ff
  2. Stackblitz: https://stackblitz.com/edit/vitejs-vite-kxq2xz2h

Current behavior

When you set the locale to be Thai what we are getting back is 14/มีนาคม/BBBB. If I alter the format to match DayJS docs to "BBBB BB" then the textfield just shows "BBBB BB"

Expected behavior

I would expect that BBBB would be set to 2568

Context

I am trying to support the Thai(Buddhist) locale formats for our users in that territory. I tested this in chrome 134

Your environment

npx @mui/envinfo
  System:
    OS: macOS 15.2
  Binaries:
    Node: 20.18.3 - ~/.volta/tools/image/node/20.18.3/bin/node
    npm: 10.8.2 - ~/.volta/tools/image/node/20.18.3/bin/npm
    pnpm: 9.12.3 - ~/.volta/bin/pnpm
  Browsers:
    Chrome: 134.0.6998.89
    Edge: Not Found
    Safari: 18.2
  npmPackages:
    @emotion/react: ^11.11.4 => 11.11.4
    @emotion/styled: ^11.11.5 => 11.11.5
    @mui/icons-material: ^6.4.5 => 6.4.5
    @mui/lab: ^6.0.0-beta.28 => 6.0.0-beta.28
    @mui/material: ^6.4.5 => 6.4.5
    @mui/material-nextjs: ^6.4.3 => 6.4.3
    @mui/system: ^6.4.3 => 6.4.3
    @mui/x-data-grid-pro: ^7.27.0 => 7.27.0
    @mui/x-date-pickers-pro: ^7.27.0 => 7.27.0
    @mui/x-license-pro: ^6.10.2 => 6.10.2
    @types/react: 18.3.1 => 18.3.1
    react: 18.3.1 => 18.3.1
    typescript: ^5.4.5 => 5.6.3

Order ID or Support key 💳 (optional)[/-]

Order ID: 106562

Search keywords: DatePicker Buddist Era Support

@jrock2004 jrock2004 added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 14, 2025
@github-actions github-actions bot added the component: pickers This is the name of the generic UI component, not the React module! label Mar 14, 2025
@michelengelen
Copy link
Member

Hey @jrock2004 ... i can confirm this, but couldn't find a quick workaround or answer why this is not recognized as the year part of the date.

I'll add this to the board. 👍🏼

@michelengelen michelengelen changed the title DatePicker with DayJS - Does Not Support BBBB Buddist Era [pickers][DatePicker] No support for Buddhist Era year section ('BBBB') Mar 17, 2025
@michelengelen michelengelen added l10n localization component: date picker This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 17, 2025
@jrock2004
Copy link
Author

Hey @jrock2004 ... i can confirm this, but couldn't find a quick workaround or answer why this is not recognized as the year part of the date.

I'll add this to the board. 👍🏼

@michelengelen Also updated ticket with order ID as we do have a pro plan. Not sure if I have to create a new ticket to get priority but thought I would let you know

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! component: pickers This is the name of the generic UI component, not the React module! l10n localization
Projects
None yet
Development

No branches or pull requests

2 participants