feat: do not use path as date
This commit is contained in:
@@ -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() +
|
||||
|
||||
Reference in New Issue
Block a user