From 2f7b36bde8ad91efd5da483116d86201900001c8 Mon Sep 17 00:00:00 2001 From: Victor Rudolfsson Date: Thu, 22 Aug 2024 11:01:31 +1000 Subject: [PATCH] fix: Luxon AM/PM formatting --- src/generate/luxon.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generate/luxon.ts b/src/generate/luxon.ts index cd1def454..dffa4acf3 100644 --- a/src/generate/luxon.ts +++ b/src/generate/luxon.ts @@ -25,7 +25,8 @@ const normalizeFormatPart = (part: string): string => .replace(/D/g, 'd') .replace(/gg/g, 'kk') .replace(/Q/g, 'q') - .replace(/([Ww])o/g, 'WW'); + .replace(/([Ww])o/g, 'WW') + .replace(/A/g, 'a'); /** * Normalizes a moment compatible format string to a luxon compatible format string