feat(creator-channel): 커뮤니티 탭 응답 조립을 추가한다

This commit is contained in:
2026-06-22 00:01:45 +09:00
parent bd4e865f2e
commit e0e6b34d21
4 changed files with 242 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package kr.co.vividnext.sodalive.extensions
import java.time.Duration
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.ZoneOffset
private val DEFAULT_KST_ZONE_ID: ZoneId = ZoneId.of("Asia/Seoul")
private val UTC_ZONE_ID: ZoneId = ZoneId.of("UTC")
@@ -26,3 +27,7 @@ fun LocalDateTime.convertToUtc(timeZone: ZoneId = DEFAULT_KST_ZONE_ID): LocalDat
.withZoneSameInstant(UTC_ZONE_ID)
.toLocalDateTime()
}
fun LocalDateTime.toUtcIso(): String {
return atOffset(ZoneOffset.UTC).toInstant().toString()
}