From 647bee7a9b72fd91ec4ba392bde60986eebf4d99 Mon Sep 17 00:00:00 2001 From: zengwh Date: Sun, 22 May 2022 14:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9DateUtil=E9=87=8C=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E6=9C=AA=E8=B0=83=E7=94=A8=E7=9A=84=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 3 +++ src/main/java/com/ann/demo/utils/DateUtils.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index acbcf6c..33d79ed 100644 --- a/pom.xml +++ b/pom.xml @@ -100,6 +100,9 @@ org.springframework.boot spring-boot-maven-plugin + + true + ExamReportInterface diff --git a/src/main/java/com/ann/demo/utils/DateUtils.java b/src/main/java/com/ann/demo/utils/DateUtils.java index 842d676..1a87a0a 100644 --- a/src/main/java/com/ann/demo/utils/DateUtils.java +++ b/src/main/java/com/ann/demo/utils/DateUtils.java @@ -80,7 +80,7 @@ public class DateUtils { * @return */ public static Date strToDate(String strDate) { - SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss"); + SimpleDateFormat formatter = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); ParsePosition pos = new ParsePosition(0); Date strtodate = formatter.parse(strDate, pos); return strtodate;