last updated timezone changed
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user