From c5b14134c9bffeaa16d9605f627f5128ae55c080 Mon Sep 17 00:00:00 2001 From: fangjiakai <450850793@qq.com> Date: Fri, 12 Jan 2024 08:31:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9MQ=E6=B6=88=E6=81=AF=E5=8F=91?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zcloud/util/MqUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("/","-")); } }