Skip to content

Commit

Permalink
[FIX] 결제 - 요청, 승인 시간 UTC+9 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
f1v3-dev committed Mar 22, 2024
1 parent 1506ec6 commit 84d88b7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package store.ckin.api.payment.service.impl;

import java.util.Objects;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
Expand Down Expand Up @@ -41,8 +42,8 @@ public void createPayment(Long saleId, PaymentRequestDto requestDto) {
.sale(sale)
.paymentKey(requestDto.getPaymentKey())
.paymentStatus(requestDto.getPaymentStatus())
.requestedAt(requestDto.getRequestedAt())
.approvedAt(requestDto.getApprovedAt())
.requestedAt(requestDto.getRequestedAt().plusHours(9))
.approvedAt(Objects.nonNull(requestDto.getApprovedAt()) ? requestDto.getApprovedAt().plusHours(9) : null)
.receipt(requestDto.getReceiptUrl())
.build();

Expand Down

0 comments on commit 84d88b7

Please sign in to comment.