From e4ced3e6175e786e5a01c11617e183dd8f99bb8a Mon Sep 17 00:00:00 2001 From: noeyoes Date: Sun, 17 Mar 2024 18:44:54 +0900 Subject: [PATCH] =?UTF-8?q?Refactor:=20DateTime=20format=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/medicare/neulpeum/domain/BaseTimeEntity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/medicare/neulpeum/domain/BaseTimeEntity.java b/src/main/java/com/medicare/neulpeum/domain/BaseTimeEntity.java index 5fe0039..5cc1a9f 100644 --- a/src/main/java/com/medicare/neulpeum/domain/BaseTimeEntity.java +++ b/src/main/java/com/medicare/neulpeum/domain/BaseTimeEntity.java @@ -23,13 +23,13 @@ public abstract class BaseTimeEntity { @PrePersist public void onPrePersist(){ - this.createdAt = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")); - this.modifiedAt = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")); + this.createdAt = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy.MM.dd HH:mm")); + this.modifiedAt = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy.MM.dd HH:mm")); } @PreUpdate public void onPreUpdate() { - this.modifiedAt = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")); + this.modifiedAt = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy.MM.dd HH:mm")); } }