fix: replace LocalDate.ofInstant (API 34) with Instant.atZone chain (API 26+)

This commit is contained in:
Claude
2026-06-22 09:38:31 -04:00
committed by Vitor Pamplona
parent a971f4389e
commit 2918dc5497
@@ -273,7 +273,7 @@ class CardFeedContentState(
// reaction/zap/repost — a meaningful GC saving on full feed conversions.
val zone = ZoneId.systemDefault()
fun epochDay(createdAt: Long?): Long = LocalDate.ofInstant(Instant.ofEpochSecond(createdAt ?: 0L), zone).toEpochDay()
fun epochDay(createdAt: Long?): Long = Instant.ofEpochSecond(createdAt ?: 0L).atZone(zone).toLocalDate().toEpochDay()
val allBaseNotes = zapsPerEvent.keys + boostsPerEvent.keys + reactionsPerEvent.keys + nutzapsPerEvent.keys
val multiCards =