From f106c403d84fae98efa53626d3b22be43be5582e Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Tue, 16 May 2023 15:27:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E6=97=B6=E9=97=B4bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/glxp/udi/admin/util/DateUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/glxp/udi/admin/util/DateUtil.java b/src/main/java/com/glxp/udi/admin/util/DateUtil.java index 86419b1..92efedc 100644 --- a/src/main/java/com/glxp/udi/admin/util/DateUtil.java +++ b/src/main/java/com/glxp/udi/admin/util/DateUtil.java @@ -53,7 +53,7 @@ public class DateUtil extends DateUtils { * 得到日期时间字符串,转换格式(yyyy-MM-dd HH:mm:ss) */ public static String formatDateTime(Date date) { - Date currentTime = new Date(); + Date currentTime = date; SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateString = formatter.format(currentTime); return dateString;