set 0 seconds, this will fix an issue selecting a start date in recurrent event

This commit is contained in:
lesion 2022-02-21 15:26:26 +01:00
parent c02912f0ea
commit 3e0b75e623
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -194,7 +194,7 @@ export default {
} else if (what === 'fromHour') {
if (value) {
const [hour, minute] = value.split(':')
const from = dayjs(this.value.from).hour(hour).minute(minute)
const from = dayjs(this.value.from).hour(hour).minute(minute).second(0)
this.$emit('input', { ...this.value, from, fromHour: true })
} else {
this.$emit('input', { ...this.value, fromHour: false })
@ -209,7 +209,7 @@ export default {
if (fromHour > Number(hour) && !this.value.multidate) {
due = due.add(1, 'day')
}
due = due.hour(hour).minute(minute)
due = due.hour(hour).minute(minute).second(0)
this.$emit('input', { ...this.value, due, dueHour: true })
} else {
this.$emit('input', { ...this.value, due: null, dueHour: false })