fix bug with next event highlight

This commit is contained in:
marlon-erler
2026-09-26 01:43:04 +02:00
parent 60234642c9
commit 6322645e84
3 changed files with 30 additions and 64 deletions
+7 -1
View File
@@ -21,7 +21,13 @@ export function createTimestamp(): string {
}
export function formatISO(date: Date): string {
return date.toISOString().split("T")[0];
return formatISOFromParts(date.getFullYear(), date.getMonth()+1, date.getDate())
}
export function formatISOFromParts(year: number, month: number, date: number): string {
return [year, month, date]
.map((x, i) => i == 0 ? x : CalendarModel.padZero(x.toString()))
.join("-");
}
export function formatTime(date: Date): string {