fix: LocalDateTime.toString()시 초가 잘리는 문제 fix

dev
Jonguk. Lim 3 days ago
parent eb627d5407
commit e77f1e6568

@ -592,7 +592,8 @@ public class DateUtil {
localDateTime = localDateTime.plusHours(hour); localDateTime = localDateTime.plusHours(hour);
localDateTime = localDateTime.plusMinutes(minute); localDateTime = localDateTime.plusMinutes(minute);
localDateTime = localDateTime.plusSeconds(second); 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) { } catch (Exception e) {
log.error("DateUtils::getCalculatorDateAndTime", e); log.error("DateUtils::getCalculatorDateAndTime", e);
} }

Loading…
Cancel
Save