From e77f1e65682a425c122446ea3c51cd15d04e5744 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 12 Nov 2024 18:57:04 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20LocalDateTime.toString()=EC=8B=9C=20?= =?UTF-8?q?=EC=B4=88=EA=B0=80=20=EC=9E=98=EB=A6=AC=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/ens/core/utils/DateUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/ens/core/utils/DateUtil.java b/src/main/java/cokr/xit/ens/core/utils/DateUtil.java index bdfe039..a41e023 100644 --- a/src/main/java/cokr/xit/ens/core/utils/DateUtil.java +++ b/src/main/java/cokr/xit/ens/core/utils/DateUtil.java @@ -592,7 +592,8 @@ public class DateUtil { localDateTime = localDateTime.plusHours(hour); localDateTime = localDateTime.plusMinutes(minute); localDateTime = localDateTime.plusSeconds(second); - result = localDateTime.toString(); + DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss"); + result = localDateTime.format(formatter); } catch (Exception e) { log.error("DateUtils::getCalculatorDateAndTime", e); }