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