mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-26 03:52:28 +02:00
Fix: Correct Maintenance Start/End Time Input to Use Explicitly Specified Timezone (#4186)
This commit is contained in:
parent
777ef6bc7b
commit
abc8f2b131
@ -29,10 +29,10 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
startDateTime() {
|
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() {
|
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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user