fix(db-mongodb): localized dates being returned as date objects instead of strings (#12354)

Fixes https://github.com/payloadcms/payload/issues/12334

We weren't passing locale through to the Date transformer function so
localized dates were being read as objects instead of strings.
This commit is contained in:
Paul
2025-05-10 17:15:15 -07:00
committed by GitHub
parent 3701de5056
commit c43891b2ba
6 changed files with 90 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ export const hungarianLocale = 'hu'
// Slugs
export const localizedPostsSlug = 'localized-posts'
export const localizedDateFieldsSlug = 'localized-date-fields'
export const withLocalizedRelSlug = 'with-localized-relationship'
export const relationshipLocalizedSlug = 'relationship-localized'
export const withRequiredLocalizedFields = 'localized-required'