diff --git a/src/main/java/com/zcloud/util/MqUtil.java b/src/main/java/com/zcloud/util/MqUtil.java index 0bded3b..049fcfb 100644 --- a/src/main/java/com/zcloud/util/MqUtil.java +++ b/src/main/java/com/zcloud/util/MqUtil.java @@ -72,6 +72,6 @@ public class MqUtil { } public static Date dateFormat(String date) throws Exception{ - return timeFormat.parse(date); + return timeFormat.parse(date.replaceAll("/","-")); } }