@@ -41,9 +41,9 @@ public TotalCommitResponseDto getTotalCommits(@AuthenticationPrincipal CustomOAu
4141 @ GetMapping ("/api/commits/spring" )
4242 public TotalCommitResponseDto getSpringSeasonCommits (@ AuthenticationPrincipal CustomOAuth2User oAuth2User ) {
4343 String username = oAuth2User .getName ();
44- int currentYear = LocalDateTime .now ().getYear (); // 현재는 테스트용으로 2024 대입
45- LocalDateTime since = LocalDateTime .of (2024 , 3 , 1 , 0 , 0 );
46- LocalDateTime until = LocalDateTime .of (2024 , 5 , 31 , 23 , 59 , 59 );
44+ int currentYear = LocalDateTime .now ().getYear (); // 올해 대입
45+ LocalDateTime since = LocalDateTime .of (2025 , 3 , 1 , 0 , 0 );
46+ LocalDateTime until = LocalDateTime .of (2025 , 5 , 31 , 23 , 59 , 59 );
4747 return totalCommitService .getSeasonCommits (username , since , until );
4848 }
4949
@@ -71,9 +71,9 @@ public TotalCommitResponseDto getFallSeasonCommits(@AuthenticationPrincipal Cust
7171 @ GetMapping ("/api/commits/winter" )
7272 public TotalCommitResponseDto getWinterSeasonCommits (@ AuthenticationPrincipal CustomOAuth2User oAuth2User ) {
7373 String username = oAuth2User .getName ();
74- int currentYear = LocalDateTime .now ().getYear (); // 현재는 테스트용으로 2024 대입
75- LocalDateTime since = LocalDateTime .of (2024 - 1 , 12 , 1 , 0 , 0 );
76- LocalDateTime until = LocalDateTime .of (2024 , 2 , 1 , 23 , 59 , 59 )
74+ int currentYear = LocalDateTime .now ().getYear (); // 2024.12 ~ 2025.2 대입
75+ LocalDateTime since = LocalDateTime .of (2025 - 1 , 12 , 1 , 0 , 0 );
76+ LocalDateTime until = LocalDateTime .of (2025 , 2 , 1 , 23 , 59 , 59 )
7777 .with (TemporalAdjusters .lastDayOfMonth ());
7878 return totalCommitService .getSeasonCommits (username , since , until );
7979 }
0 commit comments