From 1848bd970aba5c71e1dce1c30c5d7ed14b4449ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B5=E6=AD=A3=E6=98=8A?= Date: Fri, 21 Apr 2023 13:54:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=86=97=E4=BD=99?= =?UTF-8?q?=EF=BC=8C=E5=AE=9A=E4=B9=89=E4=BA=86=E4=B8=80=E4=B8=AA=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E5=B8=B8=E9=87=8F=EF=BC=8C=E5=BB=BA?= =?UTF-8?q?=E8=AE=AE=E5=88=A0=E9=99=A4=E6=88=96=E8=80=85=E7=A7=BB=E5=85=A5?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/opengauss/batman/common/utils/DateUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/org/opengauss/batman/common/utils/DateUtils.java b/backend/src/main/java/org/opengauss/batman/common/utils/DateUtils.java index d7b837f..30c492c 100644 --- a/backend/src/main/java/org/opengauss/batman/common/utils/DateUtils.java +++ b/backend/src/main/java/org/opengauss/batman/common/utils/DateUtils.java @@ -26,7 +26,7 @@ public class DateUtils { private static final String DATE_PATTERN = "yyyy-MM-dd"; - private static final String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss"; +// private static final String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss"; /** * 日期格式化 日期格式为:yyyy-MM-dd -- Gitee From c557c05bb293988ca503fb76e9155e3b3a0ebadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B5=E6=AD=A3=E6=98=8A?= Date: Wed, 26 Apr 2023 18:24:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=86=97=E4=BD=99?= =?UTF-8?q?=EF=BC=8C=E5=AE=9A=E4=B9=89=E4=BA=86=E4=B8=80=E4=B8=AA=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E5=B8=B8=E9=87=8F=EF=BC=8C=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=B9=B6=E4=BF=AE=E6=94=B9=E4=BA=86=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E9=87=8A=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/opengauss/batman/common/utils/DateUtils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/org/opengauss/batman/common/utils/DateUtils.java b/backend/src/main/java/org/opengauss/batman/common/utils/DateUtils.java index 30c492c..b627b8d 100644 --- a/backend/src/main/java/org/opengauss/batman/common/utils/DateUtils.java +++ b/backend/src/main/java/org/opengauss/batman/common/utils/DateUtils.java @@ -26,7 +26,6 @@ public class DateUtils { private static final String DATE_PATTERN = "yyyy-MM-dd"; -// private static final String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss"; /** * 日期格式化 日期格式为:yyyy-MM-dd @@ -40,7 +39,7 @@ public class DateUtils { /** * 日期格式化 日期格式为:yyyy-MM-dd * @param date 日期 - * @param pattern 格式,如:DateUtils.DATE_TIME_PATTERN + * @param pattern 格式,如:yyyy-MM-dd HH:mm:ss * @return 返回yyyy-MM-dd格式日期 */ public static String format(Date date, String pattern) { @@ -54,7 +53,7 @@ public class DateUtils { /** * 字符串转换成日期 * @param strDate 日期字符串 - * @param pattern 日期的格式,如:DateUtils.DATE_TIME_PATTERN + * @param pattern 日期的格式,如:yyyy-MM-dd HH:mm:ss */ public static Date stringToDate(String strDate, String pattern) { if (StringUtils.isNotBlank(strDate)) { -- Gitee