cleaning *1000 unix timestamp

This commit is contained in:
lesion
2019-07-27 13:05:02 +02:00
parent 03d95a4ced
commit e1afd1aeb2
11 changed files with 238 additions and 37 deletions

View File

@@ -50,8 +50,8 @@ const exportController = {
ics(res, events) {
const eventsMap = events.map(e => {
const tmpStart = moment(e.start_datetime)
const tmpEnd = moment(e.end_datetime)
const tmpStart = moment.unix(e.start_datetime)
const tmpEnd = moment.unix(e.end_datetime)
const start = [tmpStart.year(), tmpStart.month() + 1, tmpStart.date(), tmpStart.hour(), tmpStart.minute()]
const end = [tmpEnd.year(), tmpEnd.month() + 1, tmpEnd.date(), tmpEnd.hour(), tmpEnd.minute()]
return {