From 3429ab361f766a4d52262f2c6b2bc30e99701792 Mon Sep 17 00:00:00 2001 From: yang Date: Wed, 22 Nov 2023 23:04:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=8B=9C=EA=B0=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/postgraduate/log/mongoDB/entity/Log.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/postgraduate/log/mongoDB/entity/Log.java b/src/main/java/com/postgraduate/log/mongoDB/entity/Log.java index d32af4d..cb74398 100644 --- a/src/main/java/com/postgraduate/log/mongoDB/entity/Log.java +++ b/src/main/java/com/postgraduate/log/mongoDB/entity/Log.java @@ -9,6 +9,7 @@ import org.springframework.util.StringUtils; import java.time.LocalDateTime; +import java.time.ZoneId; @Document(collection = "log") @NoArgsConstructor(access = AccessLevel.PROTECTED) @@ -22,7 +23,7 @@ public class Log { private String exceptionMessage; private LogType logType; @Indexed(expireAfterSeconds = 60*60*24*30) //30일 - private LocalDateTime logDate = LocalDateTime.now(); + private LocalDateTime logDate = LocalDateTime.now(ZoneId.of("Asia/Seoul")); public Log(String logId, Integer executeTime, String methodName, String exceptionMessage) { this.logId = logId;