mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-07 06:12:56 -05:00
fix: six-month comparison logic in PositionLog
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user