Skip to content

Commit

Permalink
Updated checking thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse committed Nov 28, 2023
1 parent 3f84ab4 commit 72db99e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface SyncPreference {
companion object {

fun Date.isInThreshold(duration: Duration): Boolean {
return System.currentTimeMillis() - duration.inWholeMilliseconds < time
return Date(time + duration.inWholeMilliseconds).before(Date())
}

}
Expand Down

0 comments on commit 72db99e

Please sign in to comment.