fix: use time HTML element for date strings (#1622)
This commit is contained in:
parent
7ac94e1d84
commit
0c4281eb53
4 changed files with 9 additions and 15 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue