From a7fc89cf4087cc4c4f09f346df6f71ee5d3bdc04 Mon Sep 17 00:00:00 2001 From: Klaus Date: Sat, 14 Oct 2023 00:24:27 +0900 Subject: [PATCH] =?UTF-8?q?=ED=83=90=EC=83=89=20=EC=9D=B8=EA=B8=B0=20?= =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0=20=EC=84=B9?= =?UTF-8?q?=EC=85=98=20-=20=EB=82=A0=EC=A7=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kr/co/vividnext/sodalive/explorer/ExplorerService.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt index 5413fee..64af747 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt @@ -68,10 +68,11 @@ class ExplorerService( .toList() val currentDateTime = LocalDateTime.now() - val lastSunday = currentDateTime + val lastMonday = currentDateTime .minusWeeks(1) .with(TemporalAdjusters.previousOrSame(DayOfWeek.SUNDAY)) - val lastMonday = lastSunday.minusDays(6) + val lastSunday = lastMonday + .plusDays(6) val formatter = DateTimeFormatter.ofPattern("MM월 dd일") val formattedLastMonday = lastMonday.format(formatter)