格式时间bug修复

dev
wj 2 years ago
parent ca36b1d859
commit f106c403d8

@ -53,7 +53,7 @@ public class DateUtil extends DateUtils {
* yyyy-MM-dd HH:mm:ss * yyyy-MM-dd HH:mm:ss
*/ */
public static String formatDateTime(Date date) { public static String formatDateTime(Date date) {
Date currentTime = new Date(); Date currentTime = date;
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String dateString = formatter.format(currentTime); String dateString = formatter.format(currentTime);
return dateString; return dateString;

Loading…
Cancel
Save