sharing fix and updatedutime

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-08-22 09:02:02 +02:00
committed by Julius Härtl
parent 8874b3df69
commit bdb9442671
3 changed files with 10 additions and 2 deletions

View File

@@ -81,6 +81,14 @@ export default {
},
methods: {
updateDueTime() {
if (this.card === undefined) {
return
}
if (this.card.duedate === null) {
return
}
this.dueTime = OC.Util.relativeModifiedDate(this.card.duedate)
let timeInHours = Math.round((Date.parse(this.card.duedate) - Date.now()) / 1000 / 60 / 60 / 24)