last updated timezone changed
Some checks failed
ci / site (push) Has been cancelled
publish-image / publish (push) Has been cancelled

This commit is contained in:
2026-02-10 05:03:07 -05:00
parent 12e7eae95a
commit 1d3d68df7b

View File

@@ -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);
---
<BaseLayout
@@ -57,7 +70,7 @@ const pods = podcastEpisodes(cache)
/>
</div>
<p class="muted" style="margin-top: 14px;">
Last updated: {new Date(cache.generatedAt).toLocaleString()}
Last updated: {`${newYorkTime} EST`}
</p>
</div>
<div class="empty">