Skip to content

Commit

Permalink
Fix: 커밋 내역 확인 시간 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
nampongo committed Apr 15, 2024
1 parent a22f9ec commit bff0072
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@ public class GithubService {

public boolean hasCommitsToday(String githubId, String token) throws IOException {
GHCommit commits = githubApi.getCommits(githubId, token);
ZonedDateTime commitDate = commits.getCommitDate().toInstant().atZone(ZoneId.of("GMT"));
// if (latestGroup.getStartDate().plusHours(9).equals(ZonedDateTime.now(ZoneId.of("GMT")).plusHours(9).truncatedTo(ChronoUnit.DAYS))
log.error("----------------------commitDate : " + commitDate);
log.error("----------------------today : " + ZonedDateTime.now(ZoneId.of("GMT")).plusHours(9).truncatedTo(ChronoUnit.DAYS));
return commitDate.plusHours(9).truncatedTo(ChronoUnit.DAYS).equals(ZonedDateTime.now(ZoneId.of("GMT")).plusHours(9).truncatedTo(ChronoUnit.DAYS));
ZonedDateTime commitDate = commits.getCommitDate().toInstant().atZone(ZoneId.of("GMT")).plusHours(9).truncatedTo(ChronoUnit.DAYS);
return commitDate.equals(ZonedDateTime.now(ZoneId.of("GMT")).plusHours(9).truncatedTo(ChronoUnit.DAYS));
}
}

0 comments on commit bff0072

Please sign in to comment.