Skip to content

Commit

Permalink
Ensure America/Chicago is used for localeString
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinsina committed Apr 5, 2024
1 parent 7236174 commit 6747140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/user/[id]/scheduling/by-week/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ const description = `Scheduling by week page for user ID: ${id}`;

<DefaultLayout {title} {description}>
<div class="text-center text-3xl">
{Object.keys(weeks).map((week) => (<div><a class="underline" href=`/Stat-N-Track/user/${id}/scheduling/by-week/${Number(new Date(week))}` rel="prefetch">{new Date(week).toLocaleString()}</a></div>))}
{Object.keys(weeks).map((week) => (<div><a class="underline" href=`/Stat-N-Track/user/${id}/scheduling/by-week/${Number(new Date(week))}` rel="prefetch">{new Date(week).toLocaleString("en-US", { timeZone: "America/Chicago" })}</a></div>))}
</div>
</DefaultLayout>

0 comments on commit 6747140

Please sign in to comment.