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

Fix awkward event dates spanning multiple months #241

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DanWillman
Copy link

Date range is a bit awkward given we end in August this year, this should hopefully fix this. But I'm no svelte expert, so I'm not sure if this is the best approach.

image

Copy link

vercel bot commented Apr 10, 2024

@DanWillman is attempting to deploy a commit to the That Conference Team on Vercel.

A member of the Team first needs to authorize it.

Comment on lines +24 to +28
<span class="text-green-500">{`${venue.city}, ${venue.state}`}</span> / {#if isSameMonthAndYear(event.startDate, event.endDate)}
{dayjs(event.startDate).format('MMMM Do')} - {dayjs(event.endDate).format('Do, YYYY')}
{:else}
{dayjs(event.startDate).format('MMMM Do, YYYY')} - {dayjs(event.endDate).format('MMMM Do, YYYY')}
{/if}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it maybe worth pulling this whole block out into either a date range component or a formatDateRange util?

@theClarkSell theClarkSell self-requested a review May 9, 2024 20:36
@theClarkSell theClarkSell added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants