mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: six-month comparison logic in PositionLog
This commit is contained in:
parent
ab613d07b4
commit
91c8c7809a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue