diff --git a/frontend/src/components/VideoCard.tsx b/frontend/src/components/VideoCard.tsx index 05b5861..da5db77 100644 --- a/frontend/src/components/VideoCard.tsx +++ b/frontend/src/components/VideoCard.tsx @@ -227,7 +227,7 @@ function VideoCard({ onChannelFilter?: (channelId: string, channelName: string) => void; onOpen?: (v: Video, startAt?: number | null) => void; }) { - const { t } = useTranslation(); + const { t, i18n } = useTranslation(); const watched = video.status === "watched"; const meta = ( <> @@ -240,6 +240,16 @@ function VideoCard({ )} {relativeTime(video.published_at)} + {video.published_at && ( + <> + {" ยท "} + {new Date(video.published_at).toLocaleDateString(i18n.language, { + year: "numeric", + month: "short", + day: "numeric", + })} + + )} ); const title = (