Commit 11bc3ca7cc6873a23ac78a378e4e34c8e9e295e9
1 parent
89cc0aec
修改工具类时间转换格式
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/utils/CommonUtils.java
| ... | ... | @@ -563,7 +563,7 @@ public class CommonUtils { |
| 563 | 563 | try { |
| 564 | 564 | SimpleDateFormat formatter = null; |
| 565 | 565 | if (isEmpty(fromPattern)) { |
| 566 | - formatter = new SimpleDateFormat("yyyy-MM-dd"); | |
| 566 | + formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |
| 567 | 567 | } else { |
| 568 | 568 | formatter = new SimpleDateFormat(fromPattern); |
| 569 | 569 | } | ... | ... |