From b7ece16dd87580204a2810804349ac7cb04eb6ee Mon Sep 17 00:00:00 2001 From: Ritik Date: Thu, 7 Dec 2023 16:12:57 +0530 Subject: [PATCH] Issue #4066 Fix: Correct Maintenance Start/End Time Input to Use Explicitly Specified Timezone --- 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 ba885553431..14d768434c1 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); } }, };