From eeff11401e769f0cdf13b2344af1f25f8f9e31ed Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Tue, 2 Dec 2025 19:14:20 +0900 Subject: (김준회) 견적: PR 납기일 타임존으로 인한 날짜 표시 문제 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/soap/ecc/mapper/rfq-and-pr-mapper.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') 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, -- cgit v1.2.3