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`}