将东八区时间转换为年月日时分秒
//直接上demofunction rTime(date) {var json_date = new Date(date).toJSON();return new Date(new Date(json_date) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '') }//参数 message.EVENT_OCCUR_TIME是东八区的时间:-10-26T11:34:30Zvar startTime = rTime(message.EVENT_OCCUR_TIME)console.log(startTime) //-10-26 11:34:30