This commit is contained in:
les
2021-07-08 23:06:52 +02:00
parent e500ad2ade
commit dd9ff7cd81

View File

@@ -518,8 +518,9 @@ const eventController = {
}
const recurrent = e.recurrent
let cursor = dayjs()
const start_date = dayjs.unix(e.start_datetime)
const now = dayjs()
let cursor = start_date > now ? start_date : now
const duration = dayjs.unix(e.end_datetime).diff(start_date, 's')
const frequency = recurrent.frequency
const type = recurrent.type