This commit is contained in:
les
2020-11-06 11:05:05 +01:00
parent 0ac2edf69d
commit 47ed677362
10 changed files with 161 additions and 144 deletions

View File

@@ -34,8 +34,7 @@ export default ({ app, store }) => {
// shown in mobile homepage
Vue.filter('day', value => dayjs.unix(value).locale(store.state.locale).format('dddd, D MMM'))
Vue.filter('from', timestamp => dayjs.unix(timestamp).from())
// format event start/end datetime based on page
Vue.filter('from', timestamp => dayjs.unix(timestamp).fromNow())
Vue.filter('recurrentDetail', event => {
const { frequency, days, type } = event.parent.recurrent