summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-12-02 19:14:20 +0900
committerjoonhoekim <26rote@gmail.com>2025-12-02 19:14:20 +0900
commiteeff11401e769f0cdf13b2344af1f25f8f9e31ed (patch)
tree8a405b2ed888b6419959e7cf6be1e331b544291e
parentf4bd8d831a2148f861185680c5bdf4e5b98f96e1 (diff)
(김준회) 견적: PR 납기일 타임존으로 인한 날짜 표시 문제 수정
-rw-r--r--lib/soap/ecc/mapper/rfq-and-pr-mapper.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts b/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts
index 65b49423..3193fb65 100644
--- a/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts
+++ b/lib/soap/ecc/mapper/rfq-and-pr-mapper.ts
@@ -257,12 +257,14 @@ export async function mapECCRfqItemToRfqPrItem(
let deliveryDate: Date | null = null;
if (eccItem.LFDAT && eccItem.LFDAT.length === 8) {
try {
- // YYYYMMDD 형식을 YYYY-MM-DD로 변환 후 한국 시간 기준으로 설정
+ // YYYYMMDD 형식을 YYYY-MM-DD로 변환
const year = eccItem.LFDAT.substring(0, 4);
const month = eccItem.LFDAT.substring(4, 6);
const day = eccItem.LFDAT.substring(6, 8);
- // 한국 시간(KST, UTC+9) 기준으로 날짜 생성
- deliveryDate = new Date(`${year}-${month}-${day}T00:00:00+09:00`);
+
+ // 타임존 정보 없이 날짜만 저장
+ // new Date("YYYY-MM-DD")는 UTC 자정을 기준으로 생성됨
+ deliveryDate = new Date(`${year}-${month}-${day}`);
} catch (error) {
debugError('SAP 날짜 파싱 오류', {
lfdat: eccItem.LFDAT,