wangwei 5 lat temu
rodzic
commit
335f6b06f0

+ 0 - 4
src/main/java/cn/com/qmth/examcloud/commons/util/DateUtil.java

@@ -131,10 +131,6 @@ public class DateUtil {
 			return parse(s, "yyyy-MM-dd HH:mm");
 		} else if (s.matches("\\d{4}-\\d{1,2}-\\d{1,2}")) {
 			return parse(s, "yyyy-MM-dd");
-		} else if (s.matches("\\d{1,2}:\\d{1,2}:\\d{1,2}")) {
-			return parse(s, "HH:mm:ss");
-		} else if (s.matches("\\d{1,2}:\\d{1,2}")) {
-			return parse(s, "HH:mm");
 		} else {
 			throw new ExamCloudRuntimeException("unsupported date string.");
 		}