fix: use time HTML element for date strings (#1622)

This commit is contained in:
Bao authored and GitHub committed 2024-12-03 01:41:55 -05:00
1 parent 7ac94e1d84
commit 0c4281eb53
4 files changed
+9 -15

No files matched your search

+1 -1
View File
@@ -27,5 +27,5 @@ export function formatDate(d: Date, locale: ValidLocale = "en-US"): string {
}
export function Date({ date, locale }: Props) {
return <>{formatDate(date, locale)}</>
return <time datetime={date.toISOString()}>{formatDate(date, locale)}</time>
}