opt: 自动门优化
This commit is contained in:
@@ -279,7 +279,15 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial {
|
||||
map.put("point_code", point_code);
|
||||
}
|
||||
if (!StrUtil.isEmpty(create_time) && !StrUtil.isEmpty(end_time)) {
|
||||
// 将字符串时间解析为日期对象
|
||||
Date date = DateUtil.parse(create_time.replace("Z", " UTC"), "yyyy-MM-dd'T'HH:mm:ss.SSS Z");
|
||||
// 将日期对象加上8小时
|
||||
/*Date newDate = DateUtil.offsetHour(date, 8);*/
|
||||
// 将新日期对象格式化为字符串时间
|
||||
create_time = DateUtil.formatDateTime(date);
|
||||
map.put("create_time", create_time);
|
||||
Date date1 = DateUtil.parse(end_time.replace("Z", " UTC"), "yyyy-MM-dd'T'HH:mm:ss.SSS Z");
|
||||
end_time = DateUtil.formatDateTime(date1);
|
||||
map.put("end_time", end_time);
|
||||
}
|
||||
JSONObject jsonObject1 =
|
||||
|
||||
Reference in New Issue
Block a user