add end datetime to events

This commit is contained in:
lesion 2022-06-01 14:15:31 +02:00
parent 5f520c3485
commit a6f1a96a36
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -95,10 +95,10 @@ export default ({ app, store }) => {
// 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
return start.format('ddd, D MMMM HH:mm')
return `${start.format('ddd, D MMM HH:mm')} - ${end.format('HH:mm')}`
})
}