fix: correctly toggle to all-day
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
parent
aeb6d3c07a
commit
8bf481445e
|
@ -535,7 +535,7 @@ export default class Task {
|
|||
startJs.setHours(0)
|
||||
this.setStart(ICAL.Time.fromJSDate(startJs, true))
|
||||
} else {
|
||||
this.setStart(start)
|
||||
this.setStart(ICAL.Time.fromDateString(this._startMoment.format('YYYY-MM-DD')))
|
||||
}
|
||||
}
|
||||
const due = this.vtodo.getFirstPropertyValue('due')
|
||||
|
@ -547,7 +547,7 @@ export default class Task {
|
|||
dueJs.setHours(0)
|
||||
this.setDue(ICAL.Time.fromJSDate(dueJs, true))
|
||||
} else {
|
||||
this.setDue(due)
|
||||
this.setDue(ICAL.Time.fromDateString(this._dueMoment.format('YYYY-MM-DD')))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue