We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a487f6 commit b7f3691Copy full SHA for b7f3691
packages/pluggableWidgets/calendar-web/src/helpers/useLocalizer.ts
@@ -58,9 +58,11 @@ function createLocaleFromMendixData(mendixLocale: ReturnType<typeof getMendixLoc
58
}
59
} as Localize,
60
formatLong: {
61
- date: () => "P",
62
- time: () => "p",
63
- dateTime: () => "Pp"
+ // Use actual format strings from Mendix patterns, not tokens
+ // These are used when P/p tokens are encountered in format strings
+ date: () => mendixLocale?.patterns?.date || "MM/dd/yyyy",
64
+ time: () => mendixLocale?.patterns?.time || "h:mm a",
65
+ dateTime: () => mendixLocale?.patterns?.datetime || "MM/dd/yyyy, h:mm a"
66
} as FormatLong,
67
formatDistance: () => "",
68
formatRelative: () => "",
0 commit comments