From ea40d04e70ea53d0891ecf9874f404c1be176e5d Mon Sep 17 00:00:00 2001 From: Isaac Mann Date: Tue, 6 May 2025 11:24:58 -0400 Subject: [PATCH] fix(nx-dev): webinar list page shows event date (#30953) /webinar page should show the event date not the publish date --- nx-dev/ui-webinar/src/lib/webinar-list-item.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/nx-dev/ui-webinar/src/lib/webinar-list-item.tsx b/nx-dev/ui-webinar/src/lib/webinar-list-item.tsx index b4a8ed7c25..7570ddd28d 100644 --- a/nx-dev/ui-webinar/src/lib/webinar-list-item.tsx +++ b/nx-dev/ui-webinar/src/lib/webinar-list-item.tsx @@ -7,11 +7,14 @@ export interface WebinarListItemProps { episode: number; } export function WebinarListItem({ webinar, episode }: WebinarListItemProps) { - const formattedDate = new Date(webinar.date).toLocaleDateString('en-US', { - month: 'short', - day: '2-digit', - year: 'numeric', - }); + const formattedDate = new Date(webinar.eventDate || '').toLocaleDateString( + 'en-US', + { + month: 'short', + day: '2-digit', + year: 'numeric', + } + ); const authorsList = ( webinar.authors.length > 1 ? webinar.authors.map((a, i) =>