Skip to content

Commit

Permalink
fixes import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelp committed Sep 11, 2024
1 parent 92993aa commit eb28734
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/web/src/components/events/admin/EventDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ import { Badge } from "@/components/shadcn/ui/badge";
import Balancer from "react-wrap-balancer";
import { formatInTimeZone } from "date-fns-tz";
import { Event } from "db/types";

import { headers } from "next/headers";
import { getClientTimeZone } from "@/lib/utils/client/shared";
import { VERCEL_IP_TIMEZONE_HEADER_KEY } from "@/lib/constants";
export default function EventFull({ event }: { event: Event }) {
const userTimeZoneHeaderKey = headers().get(VERCEL_IP_TIMEZONE_HEADER_KEY);

const userTimeZone = getClientTimeZone(userTimeZoneHeaderKey);
return (
<div className="relative w-screen">
<div
Expand Down

0 comments on commit eb28734

Please sign in to comment.