NEZ-1756 fix:explore table time 列时区转换不正确

This commit is contained in:
zhangyu
2022-03-30 18:27:50 +08:00
parent ece3b2edef
commit 5db4f9cb09

View File

@@ -104,7 +104,7 @@ Vue.mixin({
},
utcTimeToTimezoneStr: function (time) {
if (time) {
return bus.timeFormate(bus.UTCTimeToConfigTimezone(time), localStorage.getItem('nz-default-dateFormat') ? localStorage.getItem('nz-default-dateFormat') : localStorage.getItem('nz-default-dateFormat') ? localStorage.getItem('nz-default-dateFormat') : 'YYYY-MM-DD HH:mm:ss')
return bus.timeFormate(time, localStorage.getItem('nz-default-dateFormat') || 'YYYY-MM-DD HH:mm:ss')
} else {
return '-'
}