Task duration #13

Merged
konrad merged 3 commits from feature/task-duration into master 2018-12-22 20:50:32 +00:00
Showing only changes of commit 3a0aec8a7d - Show all commits

View File

@ -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 {