Integrate LiveKit SFU and harden booking workflow
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { berlinParts, berlinWallTimeToUTC } from "@/lib/calendar/timezone";
|
||||
|
||||
export type MeetingStatus = "scheduled" | "open" | "live" | "ended";
|
||||
|
||||
/**
|
||||
@@ -9,9 +11,10 @@ export function combineDateAndTime(dateISO: string, timeISO?: string | null): Da
|
||||
const date = new Date(dateISO);
|
||||
if (!timeISO) return date;
|
||||
const time = new Date(timeISO);
|
||||
const combined = new Date(date);
|
||||
combined.setHours(time.getHours(), time.getMinutes(), 0, 0);
|
||||
return combined;
|
||||
if (Number.isNaN(date.getTime()) || Number.isNaN(time.getTime())) return new Date(NaN);
|
||||
const dateParts = berlinParts(date);
|
||||
const timeParts = berlinParts(time);
|
||||
return berlinWallTimeToUTC(dateParts, timeParts.hour, timeParts.minute);
|
||||
}
|
||||
|
||||
export type MeetingWindow = {
|
||||
|
||||
Reference in New Issue
Block a user