Skip to content

Commit 947affa

Browse files
authored
Remove "PDT" from dates (#2024)
1 parent 15e6258 commit 947affa

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

src/app/conf/2025/schedule/_components/schedule-list.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,13 @@ export function ScheduleList({
199199
<div className="mr-px flex flex-col max-lg:ml-px lg:flex-row">
200200
<div className="relative border-neu-50 bg-neu-50 dark:bg-neu-0 max-lg:-mx-px max-lg:my-px max-lg:border-x lg:mr-px">
201201
<span className="typography-body-sm mt-3 inline-block w-20 whitespace-nowrap pb-0.5 pl-4 lg:mr-6 lg:w-28 lg:pb-4 lg:pl-0">
202-
{format(parseISO(sessionDate), "hh:mmaaaa 'PDT'")}
202+
{parseISO(sessionDate).toLocaleTimeString(
203+
undefined,
204+
{
205+
hour: "2-digit",
206+
minute: "2-digit",
207+
},
208+
)}
203209
</span>
204210
</div>
205211
<div className="relative flex w-full flex-col items-end gap-px lg:flex-row lg:items-start">

src/app/conf/_components/schedule/schedule-list.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,13 @@ export function ScheduleList({
172172
<div className="mb-4 flex flex-col lg:flex-row">
173173
<div className="relative">
174174
<span className="mb-5 mt-3 inline-block w-20 whitespace-nowrap text-gray-500 lg:mr-7 lg:mt-0 lg:w-28">
175-
{format(parseISO(sessionDate), "hh:mmaaaa 'PDT'")}
175+
{parseISO(sessionDate).toLocaleTimeString(
176+
undefined,
177+
{
178+
hour: "2-digit",
179+
minute: "2-digit",
180+
},
181+
)}
176182
</span>
177183
<div className="absolute right-3 top-0 hidden h-full w-0.5 bg-gray-200 lg:block" />
178184
</div>

0 commit comments

Comments
 (0)