탐색 인기 크리에이터 섹션 - 날짜 수정
This commit is contained in:
parent
b59d7b5dca
commit
a7fc89cf40
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue