From 9f30876f2e155c4d752c1b73ff50ed47b75c39cd Mon Sep 17 00:00:00 2001 From: elise Date: Thu, 8 Aug 2024 22:04:53 +0200 Subject: [PATCH] replace hyphen with dash --- web/src/lib/date.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/lib/date.ts b/web/src/lib/date.ts index 0034d49..22048a1 100644 --- a/web/src/lib/date.ts +++ b/web/src/lib/date.ts @@ -101,7 +101,7 @@ export function formatDateRange(dates: string[]): string { if (firstDate.getMonth() === lastDate.getMonth()) { // same month - return `${firstDate.getDay()}.-${lastDate.getDay()}. ${formatDate( + return `${firstDate.getDay()}.—${lastDate.getDay()}. ${formatDate( firstDate, "MMMM" )}`; @@ -110,5 +110,5 @@ export function formatDateRange(dates: string[]): string { // continues into next month const formattedFirstDate = formatDate(firstDate, "d. MMMM"); const formattedLastDate = formatDate(lastDate, "d. MMMM"); - return `${formattedFirstDate} - ${formattedLastDate}`; + return `${formattedFirstDate}—${formattedLastDate}`; }