add end datetime to events

This commit is contained in:
lesion
2022-06-01 14:15:31 +02:00
parent 5f520c3485
commit a6f1a96a36

View File

@@ -95,10 +95,10 @@ export default ({ app, store }) => {
// multidate // multidate
if (event.multidate) { if (event.multidate) {
return `${start.format('ddd, D MMM HH:mm')} - ${end.format('ddd, D MMM')}` return `${start.format('ddd, D MMM HH:mm')} - ${end.format('ddd, D MMM HH:mm')}`
} }
// normal event // normal event
return start.format('ddd, D MMMM HH:mm') return `${start.format('ddd, D MMM HH:mm')} - ${end.format('HH:mm')}`
}) })
} }