Skip to content

Commit 6eb604d

Browse files
committed
add to 2023 too
1 parent 4940592 commit 6eb604d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/conf/2023/sessions/[id]/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from "../../../_components/speakers/social-media"
1313
import { speakers, schedule } from "@/app/conf/2023/_data"
1414
import { metadata as layoutMetadata } from "@/app/conf/2023/layout"
15+
import { format, parseISO } from 'date-fns'
1516

1617
type SessionProps = { params: { id: string } }
1718

@@ -110,6 +111,13 @@ export default function SessionPage({ params }: SessionProps) {
110111
<h1 className="mt-0 text-2xl lg:text-3xl font-medium mb-5">
111112
{eventTitle}
112113
</h1>
114+
<span className="text-[#333333]">
115+
{format(
116+
parseISO(event.event_start),
117+
"EEEE, MMMM d / hh:mmaaaa 'PDT'",
118+
)}{" "}
119+
- {format(parseISO(event.event_end), "hh:mmaaaa 'PDT'")}
120+
</span>
113121
</div>
114122
<div className="flex lg:flex-row flex-col sm:gap-5">
115123
{event.speakers!.map(speaker => (

0 commit comments

Comments
 (0)