格式时间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
*/
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;

Loading…
Cancel
Save