fix(Date): Account for local timezone offset

This commit is contained in:
Emile Bangma 2024-12-08 22:35:49 +00:00
parent 5ccc2dcbba
commit 3ab0b04cf0

View File

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