From 3e0b75e62323e2f79934f7c1c2bddc7a7eccf57a Mon Sep 17 00:00:00 2001 From: lesion Date: Mon, 21 Feb 2022 15:26:26 +0100 Subject: [PATCH] set 0 seconds, this will fix an issue selecting a start date in recurrent event --- pages/add/DateInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/add/DateInput.vue b/pages/add/DateInput.vue index f40f27be..6ba63d7f 100644 --- a/pages/add/DateInput.vue +++ b/pages/add/DateInput.vue @@ -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 })