fix: correctly toggle to all-day

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
Raimund Schlüßler 2024-01-22 23:24:54 +01:00
parent aeb6d3c07a
commit 8bf481445e
No known key found for this signature in database
GPG Key ID: 036FA7EB1A599178
1 changed files with 2 additions and 2 deletions

View File

@ -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')))
}
}
}