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;