Commit 11bc3ca7cc6873a23ac78a378e4e34c8e9e295e9

Authored by 王言钊
1 parent 89cc0aec

修改工具类时间转换格式

src/main/java/com/cnlive/shenhe/utils/CommonUtils.java
@@ -563,7 +563,7 @@ public class CommonUtils { @@ -563,7 +563,7 @@ public class CommonUtils {
563 try { 563 try {
564 SimpleDateFormat formatter = null; 564 SimpleDateFormat formatter = null;
565 if (isEmpty(fromPattern)) { 565 if (isEmpty(fromPattern)) {
566 - formatter = new SimpleDateFormat("yyyy-MM-dd"); 566 + formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
567 } else { 567 } else {
568 formatter = new SimpleDateFormat(fromPattern); 568 formatter = new SimpleDateFormat(fromPattern);
569 } 569 }