Skip to content

Commit

Permalink
hotfix : minus 해줘야햇네요
Browse files Browse the repository at this point in the history
  • Loading branch information
MyunghyunNero committed Nov 23, 2023
1 parent 358b0a9 commit 3d221a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public ProgramPostReq getTempProgram(String username) {
}
@Override
public Long postProgram(ProgramPostReq programPostReq ,String username) {
LocalDateTime localDateTime = LocalDateTime.now().plusDays(1).plusHours(9);
LocalDateTime localDateTime = LocalDateTime.now().minusDays(1).plusHours(9);
LocalDate localdate = localDateTime.toLocalDate();
User user = userRepository.findById(Long.valueOf(username)).get();
Program tempProgram = programRespository.findByUserIdAndStatus(user.getId(), //나중에 유저 생기면 수정 필요
Expand Down Expand Up @@ -126,7 +126,7 @@ public Long postProgram(ProgramPostReq programPostReq ,String username) {

@Override
public Long editProgram(ProgramPostReq programPostReq ,String username) {
LocalDateTime localDateTime = LocalDateTime.now().plusDays(1).plusHours(9);
LocalDateTime localDateTime = LocalDateTime.now().minusDays(1).plusHours(9);
LocalDate localdate = localDateTime.toLocalDate();
User user = userRepository.findById(Long.valueOf(username)).get();
Program tempProgram = programRespository.findById(programPostReq.getProgramId()).orElse(null);
Expand All @@ -148,7 +148,7 @@ public Long postTempProgram(ProgramPostReq programPostReq , String username) {
User user = userRepository.findById(Long.valueOf(username)).get();
Program tempProgram = programRespository.findByUserIdAndStatus(user.getId(), //나중에 유저 생기면 수정 필요
Program.ProgramStatus.TEMP);
LocalDateTime localDateTime = LocalDateTime.now().plusDays(1).plusHours(9);
LocalDateTime localDateTime = LocalDateTime.now().minusDays(1).plusHours(9);
LocalDate localdate = localDateTime.toLocalDate();
if(tempProgram == null) { //임시 저장이 없으면
Program program = new Program();
Expand Down

0 comments on commit 3d221a0

Please sign in to comment.