Skip to content

Commit

Permalink
Merge pull request #15 from dz-ai/Fix-today-event-has-wrong-time
Browse files Browse the repository at this point in the history
Fix add the missing time to the next event when the event is not today.
  • Loading branch information
janis-kra authored Nov 28, 2024
2 parents 3ce9d62 + a5a1aa8 commit 0a09cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/NextEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ export default function NextEvent() {
<em>
{isEventToday
? `Today ${eventTime}`
: eventDate.toLocaleString('en-us', {
: `${eventDate.toLocaleString('en-us', {
day: 'numeric',
month: 'long',
year: 'numeric',
})}
})} - ${eventTime}`}
</em>
</h2>
<div className="venue">
Expand Down

0 comments on commit 0a09cbe

Please sign in to comment.