Skip to content

Commit

Permalink
change: removing the o from event banner to remove the th,st
Browse files Browse the repository at this point in the history
  • Loading branch information
Singh-Ish committed Jan 15, 2025
1 parent d364672 commit d3a9604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/PageHeader/PageHeaderEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const PageHeaderEvent = ({ startDate, endDate }: PageHeaderEventProps) =>
let finalDate = ''
if (parsedStartDate && parsedEndDate) {
if (isSameDay(parsedStartDate, parsedEndDate)) {
finalDate = `${format(parsedStartDate, 'EEEE, MMMM do, yyyy')} from ${format(parsedStartDate, 'h:mmaaa')} to ${format(parsedEndDate, 'h:mmaaa')}`
finalDate = `${format(parsedStartDate, 'EEEE, MMMM d, yyyy')} from ${format(parsedStartDate, 'h:mmaaa')} to ${format(parsedEndDate, 'h:mmaaa')}`
} else {
finalDate = `${format(parsedStartDate, 'EEEE, MMMM do, yyyy')} at ${format(parsedStartDate, 'h:mmaaa')} to ${format(parsedEndDate, 'EEEE, MMMM do, yyyy')} at ${format(parsedEndDate, 'h:mmaaa')}`
finalDate = `${format(parsedStartDate, 'EEEE, MMMM d, yyyy')} at ${format(parsedStartDate, 'h:mmaaa')} to ${format(parsedEndDate, 'EEEE, MMMM d, yyyy')} at ${format(parsedEndDate, 'h:mmaaa')}`
}
}

Expand Down

0 comments on commit d3a9604

Please sign in to comment.