From daabc02e9ae54f216ada77aa826b349f37c3281a Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 27 Nov 2025 09:43:55 +0000 Subject: (최겸) 구매 입찰 피드백 반영(80%완) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/bidding/selection/biddings-selection-columns.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib/bidding/selection/biddings-selection-columns.tsx') diff --git a/lib/bidding/selection/biddings-selection-columns.tsx b/lib/bidding/selection/biddings-selection-columns.tsx index 9efa849b..355d5aaa 100644 --- a/lib/bidding/selection/biddings-selection-columns.tsx +++ b/lib/bidding/selection/biddings-selection-columns.tsx @@ -176,13 +176,18 @@ export function getBiddingsSelectionColumns({ setRowAction }: GetColumnsProps): if (!startDate || !endDate) return - const now = new Date() - const isPast = now > new Date(endDate) + const startObj = new Date(startDate) + const endObj = new Date(endDate) + const isPast = now > endObj const isClosed = isPast + // UI 표시용 KST 변환 + const formatKst = (d: Date) => new Date(d.getTime() + 9 * 60 * 60 * 1000).toISOString().slice(0, 16).replace('T', ' ') + return (
- {formatDate(startDate, "KR")} ~ {formatDate(endDate, "KR")} + {formatKst(startObj)} ~ {formatKst(endObj)}
{isClosed && ( 마감 -- cgit v1.2.3