Skip to content

Date formats are not localized #12890

Open
@ThijsAtFreave

Description

@ThijsAtFreave

Describe the Bug.

Not all locales use the same date formats in the same situation. Currently the formats are hardcoded in a way that works properly for English, but not for other languages.

Example Dutch localizaton:
Image
In Dutch, this should be: 20 juni 2025, 2:21 PM

Reproduction Steps

i18n: { supportedLanguages: { nl, en } }
Set user language to Nederlands.

Environment Info

Binaries:
  Node: 24.2.0
  npm: 11.3.0
  Yarn: N/A
  pnpm: 10.12.1
Relevant Packages:
  payload: 3.42.0
  next: 15.3.0
  @payloadcms/email-nodemailer: 3.42.0
  @payloadcms/graphql: 3.42.0
  @payloadcms/next/utilities: 3.42.0
  @payloadcms/payload-cloud: 3.42.0
  @payloadcms/richtext-lexical: 3.42.0
  @payloadcms/translations: 3.42.0
  @payloadcms/ui/shared: 3.42.0
  react: 19.1.0
  react-dom: 19.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uiRelated to the admin panel.status: needs-triagePossible bug which hasn't been reproduced yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions