Skip to content

Commit

Permalink
fix: Fix five months is seconds calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kvashchuka authored and sumanmaity1234 committed Oct 9, 2023
1 parent b8bced2 commit b8269c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class GithubAuthenticationSuccessHandler extends SimpleUrlAuthenticationS

private static final int ONE_DAY = 60 * 60 * 24;
private static final int SEVEN_HOURS = 60 * 60 * 7;
private static final int FIVE_MONTHS = 60 * 60 * 5 * 30;
private static final int FIVE_MONTHS = 60 * 60 * 24 * 30 * 5;

private final OAuth2AuthorizedClientService clientService;
private final String contextPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class GithubAuthenticationSuccessHandlerTest {

private static final int ONE_DAY = 60 * 60 * 24;
private static final int SEVEN_HOURS = 60 * 60 * 7;
private static final int FIVE_MONTHS = 60 * 60 * 5 * 30;
private static final int FIVE_MONTHS = 60 * 60 * 24 * 30 * 5;

private GithubAuthenticationSuccessHandler authenticationSuccessHandler;

Expand Down

0 comments on commit b8269c2

Please sign in to comment.