diff --git a/web/views/@default/clusters/cluster/settings/index.js b/web/views/@default/clusters/cluster/settings/index.js index f8491562..b25ac60d 100644 --- a/web/views/@default/clusters/cluster/settings/index.js +++ b/web/views/@default/clusters/cluster/settings/index.js @@ -6,8 +6,18 @@ Tea.context(function () { this.timeZoneGroupCode = this.timeZoneLocation.group } + let oldTimeZoneGroupCode = this.timeZoneGroupCode + let oldTimeZoneName = "" + if (this.timeZoneLocation != null) { + oldTimeZoneName = this.timeZoneLocation.name + } + this.$delay(function () { this.$watch("timeZoneGroupCode", function (groupCode) { + if (groupCode == oldTimeZoneGroupCode && oldTimeZoneName.length > 0) { + this.cluster.timeZone = oldTimeZoneName + return + } let firstLocation = null this.timeZoneLocations.forEach(function (v) { if (firstLocation != null) {