minor
This commit is contained in:
@@ -78,27 +78,12 @@ export default ({ app, store }) => {
|
||||
const start = dayjs.unix(event.start_datetime).tz()
|
||||
const end = dayjs.unix(event.end_datetime).tz()
|
||||
|
||||
// const normal = `${start.format('dddd, D MMMM (HH:mm-')}${end.format('HH:mm) ')}`
|
||||
// // recurrent event
|
||||
// if (event.parent && where !== 'home') {
|
||||
// const { frequency, days, type } = event.parent.recurrent
|
||||
// if (frequency === '1w' || frequency === '2w') {
|
||||
// const recurrent = app.i18n.tc(`event.recurrent_${frequency}_days`, days.length, { days: days.map(d => dayjs().day(d - 1).format('dddd')) })
|
||||
// return `${normal} - ${recurrent}`
|
||||
// } else if (frequency === '1m' || frequency === '2m') {
|
||||
// const d = type === 'ordinal' ? days : days.map(d => dayjs().day(d - 1).format('dddd'))
|
||||
// const recurrent = app.i18n.tc(`event.recurrent_${frequency}_${type}`, days.length, { days: d })
|
||||
// return `${normal} - ${recurrent}`
|
||||
// }
|
||||
// return 'recurrent '
|
||||
// }
|
||||
|
||||
// multidate
|
||||
if (event.multidate) {
|
||||
return `${start.format('ddd, D MMM, HH:mm')} - ${end.format('ddd, D MMM, HH:mm')}`
|
||||
return `${start.format('dddd D MMMM HH:mm')} - ${end.format('dddd D MMMM HH:mm')}`
|
||||
}
|
||||
|
||||
// normal event
|
||||
return `${start.format('dddd, D MMMM, HH:mm')}-${end.format('HH:mm')}`
|
||||
return `${start.format('dddd D MMMM HH:mm')}-${end.format('HH:mm')}`
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user