add daily duration to header, fix dropdown overflows, add time dropdown to duration select

This commit is contained in:
Gregor Vostrak
2024-08-23 15:34:49 +02:00
parent 33d139e3aa
commit 859833452f
7 changed files with 85 additions and 33 deletions

View File

@@ -102,6 +102,10 @@ export function formatHumanReadableDate(date: string) {
return dayjs(date).fromNow();
}
export function formatWeekday(date: string) {
return dayjs(date).format('dddd');
}
export function formatStartEnd(start: string, end: string | null) {
if (end) {
return `${formatTime(start)} - ${formatTime(end)}`;