emm - use string instead of date for start/endDate

This commit is contained in:
Thomas Ruoff
2022-03-30 23:56:08 +02:00
parent 9f45eab6e7
commit c65d8df853
8 changed files with 13652 additions and 878 deletions

View File

@@ -68,6 +68,10 @@ export function dateParseFrontend(input: string): Date {
return dateParse(input, FRONTEND_FORMAT)
}
export function dateParseBackend(input: string): Date {
return dateParse(input, BACKEND_FORMAT)
}
export function nowInTz(timezone = 'Europe/Berlin'): Date {
const now = new Date()
return utcToZonedTime(now, timezone)