export function getUserTimezone(req: Request): string | undefined { const cookieHeader = req.headers.get("cookie") || ""; const timezoneCookie = cookieHeader.split("; ").find(row => row.startsWith("timezone=")); return timezoneCookie ? decodeURIComponent(timezoneCookie.split("=")[1]) : undefined; }