summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,