From 07f9e2d9eeed7fe1855b49ea6c4b776afe10f15a Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 22 Feb 2023 08:33:40 +0100 Subject: [PATCH] really fix #232 --- pages/add/_edit.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/add/_edit.vue b/pages/add/_edit.vue index a2762ddc..820c76a2 100644 --- a/pages/add/_edit.vue +++ b/pages/add/_edit.vue @@ -237,12 +237,12 @@ export default { formData.append('description', this.event.description) formData.append('multidate', !!this.date.multidate) let [hour, minute] = this.date.fromHour.split(':') - formData.append('start_datetime', dayjs(this.date.from).hour(Number(hour)).minute(Number(minute)).second(0).unix()) + formData.append('start_datetime', dayjs(this.date.from).tz().hour(Number(hour)).minute(Number(minute)).second(0).unix()) if (this.date.dueHour) { [hour, minute] = this.date.dueHour.split(':') - formData.append('end_datetime', dayjs(this.date.due).hour(Number(hour)).minute(Number(minute)).second(0).unix()) + formData.append('end_datetime', dayjs(this.date.due).tz().hour(Number(hour)).minute(Number(minute)).second(0).unix()) } else if (!!this.date.multidate) { - formData.append('end_datetime', dayjs(this.date.due).hour(24).minute(0).second(0).unix()) + formData.append('end_datetime', dayjs(this.date.due).tz().hour(24).minute(0).second(0).unix()) } if (this.edit) {