Task duration #13
|
@ -411,7 +411,7 @@
|
|||
this.updateTaskByID(this.taskEditTask.id, response.data)
|
||||
|
||||
// Also update the current taskedit object so the ui changes
|
||||
this.$set(this, 'taskEditTask', response.data)
|
||||
this.$set(this, 'taskEditTask', this.fixStuffComingFromAPI(response.data))
|
||||
this.handleSuccess({message: 'The task was successfully updated.'})
|
||||
cancel() // cancel the timers
|
||||
})
|
||||
|
@ -458,7 +458,7 @@
|
|||
return task
|
||||
},
|
||||
parseDateIfNessecary(dateUnix) {
|
||||
let dateobj = new Date(dateUnix * 1000)
|
||||
let dateobj = (+new Date(dateUnix * 1000))
|
||||
if (dateobj === 0 || dateUnix === 0) {
|
||||
dateUnix = null
|
||||
} else {
|
||||
|
|
Reference in New Issue
Block a user