This commit is contained in:
Wuesteon 2025-12-04 00:32:13 +01:00
parent 16cb8e753b
commit e9caa4a217
46 changed files with 1784 additions and 728 deletions

View file

@ -17,7 +17,7 @@ export type LocaleKey = keyof typeof locales;
*/
export function formatDate(
date: string | Date,
formatStr: string = 'PPP',
formatStr = 'PPP',
locale: LocaleKey = 'de'
): string {
const dateObj = typeof date === 'string' ? parseISO(date) : date;