feat: do not use path as date

This commit is contained in:
2026-04-26 15:10:30 +02:00
parent af9b20485e
commit 34c410b687
7 changed files with 29 additions and 34 deletions
-8
View File
@@ -1,11 +1,3 @@
export function dateFromParts(
year: string | undefined,
month: string | undefined,
day: string | undefined,
): Date {
return new Date(parseInt(year ?? ''), parseInt(month ?? '') - 1, parseInt(day ?? ''))
}
export function simpleDateFormat(date: Date): string {
return (
date.getFullYear() +