Skip to content

Commit

Permalink
Also corrects nearInterval Logic.
Browse files Browse the repository at this point in the history
-Fixes: SIRI-46
  • Loading branch information
phu committed Feb 22, 2019
1 parent 6686286 commit d6ecc9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/sirius/biz/tenants/UserAccountData.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private boolean isNearInterval(LocalDateTime dateTime, Integer requiredInterval)
return true;
}

long actualInterval = Duration.between(LocalDateTime.now(), dateTime).toDays();
long actualInterval = Duration.between(dateTime, LocalDateTime.now()).toDays();
return actualInterval >= requiredInterval - 3;
}

Expand Down

0 comments on commit d6ecc9f

Please sign in to comment.