fix(nx-dev): webinar list page shows event date (#30953)

/webinar page should show the event date not the publish date
This commit is contained in:
Isaac Mann 2025-05-06 11:24:58 -04:00 committed by GitHub
parent 9ae68a7c0d
commit ea40d04e70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) =>