fix endtime selection

This commit is contained in:
lesion
2022-09-05 00:06:16 +02:00
parent a197d2123f
commit d6c7ad050b

View File

@@ -272,7 +272,7 @@ export default {
this.$emit('input', { ...this.value, from, due }) this.$emit('input', { ...this.value, from, due })
} else { } else {
let from = value let from = value
let due = this.value.due || from let due = this.value.due
if (this.fromHour) { if (this.fromHour) {
const [hour, minute] = this.fromHour.split(':') const [hour, minute] = this.fromHour.split(':')
from = dayjs.tz(value).hour(hour).minute(minute).second(0).toDate() from = dayjs.tz(value).hour(hour).minute(minute).second(0).toDate()