From 2a4d35435fc582df31f4219b7e85cf54828fcdda Mon Sep 17 00:00:00 2001 From: Emile Bangma Date: Mon, 9 Dec 2024 00:09:03 +0000 Subject: [PATCH] Get TimeZone --- quartz/components/Date.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quartz/components/Date.tsx b/quartz/components/Date.tsx index e21c9477d..0f73ac7b4 100644 --- a/quartz/components/Date.tsx +++ b/quartz/components/Date.tsx @@ -23,9 +23,10 @@ export function formatDate(d: Date, locale: ValidLocale = "en-US"): string { year: "numeric", month: "short", day: "2-digit", + timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone, }) } export function Date({ date, locale }: Props) { - return + return }