Allow line break in date range

This commit is contained in:
Björn Fromme
2018-09-26 11:32:25 +02:00
parent 2b76ad12e9
commit 0db6d097fd
@@ -118,9 +118,9 @@
return 'ab ' + dayjs(dateFrom).format('DD.MM.YYYY');
}
if (dateFrom === null && dateTo !== null) {
return '-' + dayjs(dateTo).format('DD.MM.YYYY');
return '- ' + dayjs(dateTo).format('DD.MM.YYYY');
}
return dayjs(dateFrom).format('DD.MM.YYYY') + '-' + dayjs(dateTo).format('DD.MM.YYYY');
return dayjs(dateFrom).format('DD.MM.YYYY') + ' - ' + dayjs(dateTo).format('DD.MM.YYYY');
}
}
}