소스 검색

修改时间工具类格式化时间

肖玮 5 년 전
부모
커밋
75f991f416
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      mec-education/src/main/java/com/ym/mec/education/utils/DateUtil.java

+ 1 - 2
mec-education/src/main/java/com/ym/mec/education/utils/DateUtil.java

@@ -23,8 +23,7 @@ public class DateUtil {
     private static ThreadLocal<DateFormat> threadLocal = new ThreadLocal<DateFormat>();
 
     public static DateFormat getDateFormat(String dateFormat) {
-        DateFormat df = threadLocal.get();
-        df = new SimpleDateFormat(dateFormat);
+        DateFormat df = new SimpleDateFormat(dateFormat);
         threadLocal.set(df);
         return df;
     }