mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 03:38:23 +00:00
fix: replace LocalDate.ofInstant (API 34) with Instant.atZone chain (API 26+)
This commit is contained in:
+1
-1
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user