Skip to content

Commit 61f4d2e

Browse files
committed
skip AM before PM
1 parent 0e636ea commit 61f4d2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/conf/2025/schedule/_components/format-block-time.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const timeFormat = new Intl.DateTimeFormat(undefined, {
77
export const formatBlockTime = (start: string, end?: Date) => {
88
const startDate = parseISO(start)
99
if (end) {
10-
return timeFormat.formatRange(startDate, end)
10+
return timeFormat.formatRange(startDate, end).replace("AM –", "–")
1111
}
1212
return timeFormat.format(startDate)
1313
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export function ScheduleList({
225225
>
226226
<div className="mr-px flex flex-col max-lg:ml-px lg:flex-row">
227227
<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">
228-
<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">
228+
<span className="typography-body-sm mt-3 inline-block w-28 whitespace-nowrap pb-0.5 pl-4 lg:mr-6 lg:pb-4 lg:pl-0">
229229
{formatBlockTime(sessionDate, blockEnd)}
230230
</span>
231231
</div>

0 commit comments

Comments
 (0)