탐색 - 인기 급상승 제거, 인기 크리에이터 섹션 추가 #42

Merged
klaus merged 3 commits from test into main 2023-10-13 15:41:25 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit a7fc89cf40 - Show all commits

View File

@ -68,10 +68,11 @@ class ExplorerService(
.toList() .toList()
val currentDateTime = LocalDateTime.now() val currentDateTime = LocalDateTime.now()
val lastSunday = currentDateTime val lastMonday = currentDateTime
.minusWeeks(1) .minusWeeks(1)
.with(TemporalAdjusters.previousOrSame(DayOfWeek.SUNDAY)) .with(TemporalAdjusters.previousOrSame(DayOfWeek.SUNDAY))
val lastMonday = lastSunday.minusDays(6) val lastSunday = lastMonday
.plusDays(6)
val formatter = DateTimeFormatter.ofPattern("MM월 dd일") val formatter = DateTimeFormatter.ofPattern("MM월 dd일")
val formattedLastMonday = lastMonday.format(formatter) val formattedLastMonday = lastMonday.format(formatter)