From 7a22e7d887c9d2261cbde60ff9974030aa328820 Mon Sep 17 00:00:00 2001 From: Klaus Date: Sun, 15 Oct 2023 06:39:15 +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-=20=EB=82=A0?= =?UTF-8?q?=EC=A7=9C=20=EC=84=A4=EB=AA=85=20=EA=B8=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../co/vividnext/sodalive/explorer/ExplorerService.kt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 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 0a752d3..af0b47d 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/ExplorerService.kt @@ -74,15 +74,17 @@ class ExplorerService( val lastSunday = lastMonday .plusDays(6) - val formatter = DateTimeFormatter.ofPattern("MM월 dd일") - val formattedLastMonday = lastMonday.format(formatter) - val formattedLastSunday = lastSunday.format(formatter) + val startDateFormatter = DateTimeFormatter.ofPattern("yyyy년 MM월 dd일") + val endDateFormatter = DateTimeFormatter.ofPattern("MM월 dd일") + + val formattedLastMonday = lastMonday.format(startDateFormatter) + val formattedLastSunday = lastSunday.format(endDateFormatter) val creatorRankingSection = GetExplorerSectionResponse( title = "인기 크리에이터", coloredTitle = "인기", color = "FF5C49", - desc = "$formattedLastMonday~$formattedLastSunday\n※ 인기 크리에이터의 순위는 매주 업데이트 됩니다.", + desc = "$formattedLastMonday ~ $formattedLastSunday", creators = creatorRankings ) sections.add(creatorRankingSection) -- 2.40.1