1
0
Fork 0
mirror of https://github.com/lukevella/rallly.git synced 2025-07-20 01:37:23 +02:00

Fix 24 hour format

This commit is contained in:
Luke Vella 2022-08-12 14:41:56 +01:00
parent 38606937e3
commit e21208cf1c

View file

@ -122,7 +122,7 @@ export const DayjsProvider: React.VoidFunctionComponent<{
localeConfig.timeFormat !== timeFormat localeConfig.timeFormat !== timeFormat
? { ? {
...dayjsLocale.formats, ...dayjsLocale.formats,
LT: timeFormat === "12h" ? "h:mm A" : "H:mm", LT: timeFormat === "12h" ? "h:mm A" : "HH:mm",
} }
: dayjsLocale.formats, : dayjsLocale.formats,
}); });