Skip to content

Commit

Permalink
Fix: 서버 시간 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
chaewon-io committed Apr 14, 2024
1 parent 2f1a0e6 commit 5d8cf51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public class MyChallengeResponseDto {
public static MyChallengeResponseDto of(MyChallenge myChallenge, ChallengeGroup group) {
return MyChallengeResponseDto.builder()
.groupTitle(group.getGroupTitle())
.startDate(group.getStartDate().plusHours(9))
.startDate(group.getStartDate())
.deposit(myChallenge.getDeposit())
.endDate(group.getEndDate().plusHours(9))
.endDate(group.getEndDate())
.challengeGroupId(group.getId())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public void cancelAppliedMyChallenge(String email, Long myChallengeId) {
public List<MyChallengeResponseDto> getMyChallengesListed(String email, ChallengeStatus status) {
Member member = getMemberByEmail(email);
List<MyChallenge> myChallengesListed;
ZonedDateTime todayStart = ZonedDateTime.now(ZoneId.of("GMT")).truncatedTo(ChronoUnit.DAYS).minusHours(34);
log.info("----------------------------- todayStart : " + todayStart.truncatedTo(ChronoUnit.DAYS).minusHours(34));
ZonedDateTime todayStart = ZonedDateTime.now(ZoneId.of("GMT")).truncatedTo(ChronoUnit.DAYS).minusHours(9);
log.info("----------------------------- todayStart : " + todayStart.truncatedTo(ChronoUnit.DAYS).minusHours(9));

switch (status) {
case PROGRESS:
Expand Down

0 comments on commit 5d8cf51

Please sign in to comment.