mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 23:27:04 +05:30
Revert "fix(common): use SystemClock
for getting current millis"
This broke relative time accounting
This reverts commit 42cc852a20
.
This commit is contained in:
parent
18ef9c63b9
commit
fdd2f7008c
1 changed files with 1 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue