From fdd2f7008cb8c91e99d2d128548af34c1c0afba5 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 19 Jul 2023 10:02:20 +0000 Subject: [PATCH] Revert "fix(common): use `SystemClock` for getting current millis" This broke relative time accounting This reverts commit 42cc852a20f6dcd2e42d3e1c34ed4c5cacd998ea. --- .../kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt index 03796adb..f93049d1 100644 --- a/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt +++ b/common/src/main/kotlin/dev/msfjarvis/claw/common/comments/CommentEntry.kt @@ -6,7 +6,6 @@ */ package dev.msfjarvis.claw.common.comments -import android.os.SystemClock import android.text.format.DateUtils import androidx.compose.foundation.background import androidx.compose.foundation.clickable @@ -192,7 +191,7 @@ fun buildCommenterString( createdAt: TemporalAccessor, updatedAt: TemporalAccessor, ): AnnotatedString { - val now = SystemClock.elapsedRealtime() + val now = System.currentTimeMillis() val createdRelative = remember(createdAt) { DateUtils.getRelativeTimeSpanString(