improve homepage loading removing calendar timezone

This commit is contained in:
lesion
2022-09-22 09:20:32 +02:00
parent 21092b9b0e
commit 8eec45a6c6
3 changed files with 2 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ export function attributesFromEvents(_events) {
let attributes = []
const now = dayjs().unix()
for (let e of _events) {
const key = Math.floor(e.start_datetime/(3600*24)) // dayjs.unix(e.start_datetime).tz().format('YYYYMMDD')
const key = dayjs.unix(e.start_datetime).tz().format('MMDD') // Math.floor(e.start_datetime/(3600*24)) // dayjs.unix(e.start_datetime).tz().format('YYYYMMDD')
const c = (e.end_datetime || e.start_datetime) < now ? 'vc-past' : ''
if (e.multidate) {