replace hyphen with dash

This commit is contained in:
elise
2024-08-08 22:04:53 +02:00
parent dd53f4fd80
commit 9f30876f2e

View File

@ -101,7 +101,7 @@ export function formatDateRange(dates: string[]): string {
if (firstDate.getMonth() === lastDate.getMonth()) { if (firstDate.getMonth() === lastDate.getMonth()) {
// same month // same month
return `${firstDate.getDay()}.-${lastDate.getDay()}. ${formatDate( return `${firstDate.getDay()}.${lastDate.getDay()}. ${formatDate(
firstDate, firstDate,
"MMMM" "MMMM"
)}`; )}`;
@ -110,5 +110,5 @@ export function formatDateRange(dates: string[]): string {
// continues into next month // continues into next month
const formattedFirstDate = formatDate(firstDate, "d. MMMM"); const formattedFirstDate = formatDate(firstDate, "d. MMMM");
const formattedLastDate = formatDate(lastDate, "d. MMMM"); const formattedLastDate = formatDate(lastDate, "d. MMMM");
return `${formattedFirstDate} - ${formattedLastDate}`; return `${formattedFirstDate}${formattedLastDate}`;
} }