chore: Update time zone handling in code

This commit is contained in:
Sean Morley
2024-08-17 08:30:24 -04:00
parent 4d193bc44d
commit 2b16712496
9 changed files with 18 additions and 15 deletions

View File

@@ -169,7 +169,9 @@
<path d="M3 10h18"></path>
</svg>
<span class="text-sm text-muted-foreground"
>{new Date(adventure.date).toLocaleDateString()}</span
>{new Date(adventure.date).toLocaleDateString(undefined, {
timeZone: 'UTC'
})}</span
>
</div>
{/if}
@@ -309,7 +311,7 @@
</p>
<p>
{adventure.date
? new Date(adventure.date).toLocaleDateString('en-US', {
? new Date(adventure.date).toLocaleDateString(undefined, {
timeZone: 'UTC'
})
: ''}