This commit is contained in:
lesion 2022-12-04 23:07:52 +01:00
parent eb0297a515
commit 063d905915
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -235,6 +235,15 @@ export default {
} else if (what === 'dueHour') {
if (value) {
this.value.due = this.value.due ? this.value.due : this.value.from
const [hour, minute] = value.split(':')
const [fromHour, fromMinute] = this.value.fromHour.split(':')
if (!this.value.multidate) {
if (hour < fromHour) {
this.value.due = dayjs(this.value.from).add(1, 'day').toDate()
} else {
this.value.due = dayjs(this.value.from).toDate()
}
}
} else {
this.value.due = null
}