From abc8f2b131fcf5b7d2929920657767b20158c5b2 Mon Sep 17 00:00:00 2001 From: Ritik Singh <115524271+Ritik0102@users.noreply.github.com> Date: Sat, 9 Dec 2023 15:57:07 +0530 Subject: [PATCH] Fix: Correct Maintenance Start/End Time Input to Use Explicitly Specified Timezone (#4186) --- src/components/MaintenanceTime.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MaintenanceTime.vue b/src/components/MaintenanceTime.vue index ba885553..14d76843 100644 --- a/src/components/MaintenanceTime.vue +++ b/src/components/MaintenanceTime.vue @@ -29,10 +29,10 @@ export default { }, computed: { startDateTime() { - return dayjs(this.maintenance.timeslotList[0].startDate).tz(this.maintenance.timezone).format(SQL_DATETIME_FORMAT_WITHOUT_SECOND); + return dayjs(this.maintenance.timeslotList[0].startDate).tz(this.maintenance.timezone, true).format(SQL_DATETIME_FORMAT_WITHOUT_SECOND); }, endDateTime() { - return dayjs(this.maintenance.timeslotList[0].endDate).tz(this.maintenance.timezone).format(SQL_DATETIME_FORMAT_WITHOUT_SECOND); + return dayjs(this.maintenance.timeslotList[0].endDate).tz(this.maintenance.timezone, true).format(SQL_DATETIME_FORMAT_WITHOUT_SECOND); } }, };