endDate is exclusive for allday events

This commit is contained in:
Thomas Ruoff
2022-07-06 22:50:44 +02:00
parent 3a4a4ad0b0
commit d89f9a8825
2 changed files with 17 additions and 12 deletions

View File

@@ -80,3 +80,7 @@ export function nowInTz(timezone = 'Europe/Berlin'): Date {
const now = new Date()
return utcToZonedTime(now, timezone)
}
export function getNextDay(date: Date) {
return addDays(date, 1)
}