From 1d3d68df7b0f1f15412f68e3ddbc03cac829d631 Mon Sep 17 00:00:00 2001 From: Santhosh Janardhanan Date: Tue, 10 Feb 2026 05:03:07 -0500 Subject: [PATCH] last updated timezone changed --- site/src/pages/index.astro | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro index c9f451e..99441ff 100644 --- a/site/src/pages/index.astro +++ b/site/src/pages/index.astro @@ -22,6 +22,19 @@ const ig = instagramPosts(cache).slice(0, 6); const pods = podcastEpisodes(cache) .slice(0, 6) .sort((a, b) => Date.parse(b.publishedAt) - Date.parse(a.publishedAt)); + +const options = { + timeZone: 'America/New_York', + year: 'numeric', + month: '2-digit', + day: '2-digit', + hour: '2-digit', + minute: '2-digit', + second: '2-digit', + hour12: false, // Change to true for 12-hour format +}; + +const newYorkTime = new Date(cache.generatedAt).toLocaleString('en-US', options); ---

- Last updated: {new Date(cache.generatedAt).toLocaleString()} + Last updated: {`${newYorkTime} EST`}