Skip to content

Commit

Permalink
Test: commit ZonedDateTime 로깅
Browse files Browse the repository at this point in the history
  • Loading branch information
nampongo committed Apr 15, 2024
1 parent 6c0bf58 commit 5e5e528
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ 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")).plusHours(9).truncatedTo(ChronoUnit.DAYS);
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.equals(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));
}
}

0 comments on commit 5e5e528

Please sign in to comment.