test #339

Merged
klaus merged 4 commits from test into main 2025-09-11 17:05:45 +00:00
1 changed files with 1 additions and 0 deletions
Showing only changes of commit 58a46a09c3 - Show all commits

View File

@ -19,6 +19,7 @@ object RankingWindowCalculator {
private val ZONE: ZoneId = ZoneOffset.UTC
private const val BOUNDARY_HOUR = 20 // 20:00:00 UTC
@JvmStatic
fun now(prefix: String = "popular-chat-character"): RankingWindow {
val now = ZonedDateTime.now(ZONE)
val todayBoundary = now.toLocalDate().atTime(BOUNDARY_HOUR, 0, 0).atZone(ZONE)