Skip to content

Commit

Permalink
fix: six-month comparison logic in PositionLog
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed Nov 19, 2024
1 parent ab613d0 commit 91c8c78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 91c8c78

Please sign in to comment.