Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tz display as central #257

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/_components/activities/ActivityDetails.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@
<!-- Start Time -->
<p class="text-base text-gray-700 sm:mx-auto sm:text-lg md:text-xl lg:mx-0">
{#if durationInMinutes > 0}
{dayjs(startTime).format('dddd, MMMM D, YYYY - h:mm A z')}, for
{dayjs(startTime).tz('America/Chicago').format('dddd, MMMM D, YYYY - h:mm A z')},
for
{dayjs.duration(durationInMinutes, 'minutes').as('hours')}
{#if durationInMinutes <= 60}
hour.
Expand Down
2 changes: 1 addition & 1 deletion src/_components/activities/List.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
{#if !dayjs(ts.timeSlot).isValid()}
Unscheduled
{:else}
{dayjs(ts.timeSlot).format('h:mm A z')}
{dayjs(ts.timeSlot).tz('America/Chicago').format('h:mm A z')}
{/if}
</h2>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion src/_elements/FeaturedActivity.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<h4>{title}</h4>

<p class="mt-2 text-sm font-light">
{dayjs(startTime).format('dddd, MMMM D, YYYY - h:mm A z')}
{dayjs(startTime).tz('America/Chicago').format('dddd, MMMM D, YYYY - h:mm A z')}
</p>

<p class="mt-2 text-right text-lg font-bold leading-9">
Expand Down
2 changes: 1 addition & 1 deletion src/_elements/FeaturedActivityDetail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</div>

<p class="text-sm italic text-thatBlue-200">
{dayjs(startTime).format('dddd, MMMM D, YYYY - h:mm A z')}
{dayjs(startTime).tz('America/Chicago').format('dddd, MMMM D, YYYY - h:mm A z')}
</p>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion src/routes/(admin my)/my/network/sponsors/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
<div>
<p class="text-sm text-gray-900">
<time datetime="2020-01-07"
>{dayjs(c.createdAt).format('dddd, MMMM D, YYYY - h:mm A')}</time>
>{dayjs(c.createdAt)
.tz('America/Chicago')
.format('dddd, MMMM D, YYYY - h:mm A z')}</time>
</p>
<p class="mt-2 flex items-center text-sm text-gray-500">
<svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@
<div>
<p class="text-sm text-gray-900">
<time datetime="2020-01-07"
>{dayjs(c.createdAt).format('dddd, MMMM D, YYYY - h:mm A')}</time>
>{dayjs(c.createdAt)
.tz('America/Chicago')
.format('dddd, MMMM D, YYYY - h:mm A z')}</time>
</p>
<p class="mt-2 flex items-center text-sm text-gray-500">
<svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@
<p class="flex text-sm text-gray-900">
Purchased On:
<time class="pl-2 font-extrabold" datetime={registration.orderDate}>
{dayjs(registration.orderDate).format('dddd, MMMM D, YYYY - h:mm A')}
{dayjs(registration.orderDate)
.tz('America/Chicago')
.format('dddd, MMMM D, YYYY - h:mm A z')}
</time>
</p>
<div class="mt-2 flex items-center space-x-2 text-sm text-gray-500">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
</div>

<div class="pt-10 text-center text-2xl font-bold tracking-wider text-green-500">
<p>Times are represented in your browser's timezone.</p>
<p>THAT Conference is in Central Time.</p>
<p>THAT schedule is represented in our timezone, central time.</p>
</div>
</div>
</Hero>