Skip to content

Commit

Permalink
fix: Luxon AM/PM formatting (react-component#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amnesthesia authored Aug 22, 2024
1 parent a368aa5 commit edb2ab7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generate/luxon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit edb2ab7

Please sign in to comment.