mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-07-16 19:01:01 +02:00
fix(Date): Account for local timezone offset
This commit is contained in:
parent
5ccc2dcbba
commit
3ab0b04cf0
@ -27,5 +27,5 @@ export function formatDate(d: Date, locale: ValidLocale = "en-US"): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function Date({ date, locale }: Props) {
|
export function Date({ date, locale }: Props) {
|
||||||
return <time datetime={date.toISOString()}>{formatDate(date, locale)}</time>
|
return <time datetime={formatDate(date)}>{formatDate(date, locale)}</time>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user