Skip to content

Commit 0ed177d

Browse files
Fix variable name.
1 parent 5e72b19 commit 0ed177d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/org/wikipedia/util/DateUtil.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ object DateUtil {
182182
fun formatRelativeTime(instant: Instant): CharSequence {
183183
val localDate = LocalDateTime.ofInstant(instant, ZoneId.systemDefault()).toLocalDate()
184184
val weeks = localDate.until(LocalDate.now(), ChronoUnit.WEEKS)
185-
val flags = if (weeks in 1..10) DateUtils.WEEK_IN_MILLIS else 0L
186-
return DateUtils.getRelativeTimeSpanString(instant.toEpochMilli(), System.currentTimeMillis(), flags)
185+
val minResolution = if (weeks in 1..10) DateUtils.WEEK_IN_MILLIS else 0L
186+
return DateUtils.getRelativeTimeSpanString(instant.toEpochMilli(), System.currentTimeMillis(), minResolution)
187187
}
188188
}

0 commit comments

Comments
 (0)