Commit 077be371 authored by duanruiming's avatar duanruiming

[update] 微观大数据平台-时区优化1

parent 23bdf468
......@@ -1715,9 +1715,9 @@ public class TrendServiceImpl implements TrendService {
}
hotspotCrossVO.setDetailList(dirDetails);
Date currentDate = new Date(entry.getKey() * 1000L);
hotspotCrossVO.setTimeStamp(currentDate);
hotspotCrossVO.setTimeStamp(org.apache.commons.lang3.time.DateUtils.addHours(currentDate, 8));
// 相差八小时
hotspotCrossVO.setHourMinute(DateUtils.format(org.apache.commons.lang3.time.DateUtils.addHours(currentDate, -8), "HH:mm"));
hotspotCrossVO.setHourMinute(DateUtils.format(currentDate, "HH:mm"));
hotspotCrossVO.setCrossId(abnormalCrossListVO.getId());
hotspotCrossVOS.add(hotspotCrossVO);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment