Commit 77e146c4 by 陶光胜

二维码

parent c5aba4b6
......@@ -98,7 +98,7 @@ public class PushMessageController {
if(StringUtils.isNotBlank(pushMessage.getPushTime())){
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
pushMessageDTO.setPushTime(dateFormat.parse(pushMessage.getPushTime()));
pushMessageDTO.setPushTime(dateFormat.parse(pushMessage.getPushTime().replace("T", " ").replace(".000+0000", "")));
} catch (ParseException e) {
log.warn("异常", e);
return RestResponse.failure(ErrorCode.SYSTEM_ERROR.getCode(), "日期转换错误");
......
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