From 2918dc549712263dcec1c597e47b0b9ecf540b61 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 22 Jun 2026 00:53:16 +0000 Subject: [PATCH] fix: replace LocalDate.ofInstant (API 34) with Instant.atZone chain (API 26+) --- .../ui/screen/loggedIn/notifications/CardFeedContentState.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt index 9cd127336b..4ed8adb6ae 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/notifications/CardFeedContentState.kt @@ -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 =