From 91c8c7809aedae629bf39a58e3700a1535367d46 Mon Sep 17 00:00:00 2001 From: andrekir Date: Tue, 19 Nov 2024 15:10:48 -0300 Subject: [PATCH] fix: six-month comparison logic in `PositionLog` --- .../main/java/com/geeksville/mesh/ui/components/PositionLog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/components/PositionLog.kt b/app/src/main/java/com/geeksville/mesh/ui/components/PositionLog.kt index af2090713..6fb7c68b2 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/components/PositionLog.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/components/PositionLog.kt @@ -129,7 +129,7 @@ private fun formatPositionTime( ): String { val currentTime = System.currentTimeMillis() val sixMonthsAgo = currentTime - 180.days.inWholeMilliseconds - val isOlderThanSixMonths = position.time * SecondsToMillis > sixMonthsAgo + val isOlderThanSixMonths = position.time * SecondsToMillis < sixMonthsAgo val timeText = if (isOlderThanSixMonths) { stringResource(id = R.string.unknown_age) } else {