Browse Source

公共方法调试

wangsy 4 years ago
parent
commit
19a51ea2ed
1 changed files with 3 additions and 2 deletions
  1. 3 2
      public/src/main/java/com/lantone/qc/pub/util/StringUtil.java

+ 3 - 2
public/src/main/java/com/lantone/qc/pub/util/StringUtil.java

@@ -219,8 +219,9 @@ public class StringUtil {
             if (datetime.length() > 0) {
             if (datetime.length() > 0) {
                 date = DateUtils.parseDate(datetime, Content.dateFormats);
                 date = DateUtils.parseDate(datetime, Content.dateFormats);
             }
             }
-        } catch (ParseException ex) {
-            ex.printStackTrace();
+        } catch (Exception e) {
+//            ex.printStackTrace();
+            return null;
         }
         }
         return date;
         return date;
     }
     }