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); }