1
0
Fork 0
mirror of synced 2024-09-09 22:16:26 +12:00

Save date only as date

This commit is contained in:
Adria Navarro 2024-05-22 14:35:19 +02:00
parent eac426f3c0
commit 4e67e05ad1

View file

@ -177,7 +177,7 @@ export const stringifyDate = (
const year = value.year()
const month = `${value.month() + 1}`.padStart(2, "0")
const day = `${value.date()}`.padStart(2, "0")
return `${year}-${month}-${day}T00:00:00.000`
return `${year}-${month}-${day}`
}
// Otherwise use a normal ISO string with time and timezone