From c62ec046327fd388ebce04571b55910747e69a3b Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 9 Sep 2025 10:32:34 +0000
Subject: (정희성, 최겸, 대표님) formatDate 변경 등
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/bidding/price-adjustment-dialog.tsx | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)

(limited to 'components/bidding/price-adjustment-dialog.tsx')

diff --git a/components/bidding/price-adjustment-dialog.tsx b/components/bidding/price-adjustment-dialog.tsx
index b53f9ef1..982d8b90 100644
--- a/components/bidding/price-adjustment-dialog.tsx
+++ b/components/bidding/price-adjustment-dialog.tsx
@@ -10,6 +10,7 @@ import {
 } from '@/components/ui/dialog'
 import { Badge } from '@/components/ui/badge'
 import { Separator } from '@/components/ui/separator'
+import { formatDate } from '@/lib/utils'
 
 interface PriceAdjustmentData {
   id: number
@@ -39,15 +40,6 @@ interface PriceAdjustmentDialogProps {
   vendorName: string
 }
 
-function formatDate(date: Date | null | undefined): string {
-  if (!date) return '-'
-  return new Date(date).toLocaleDateString('ko-KR', {
-    year: 'numeric',
-    month: '2-digit',
-    day: '2-digit',
-  })
-}
-
 export function PriceAdjustmentDialog({
   open,
   onOpenChange,
@@ -135,11 +127,11 @@ export function PriceAdjustmentDialog({
               <div className="grid grid-cols-2 gap-4">
                 <div>
                   <label className="text-xs text-gray-500">기준시점</label>
-                  <p className="text-sm font-medium">{formatDate(data.referenceDate)}</p>
+                  <p className="text-sm font-medium">{formatDate(data.referenceDate, "kr")}</p>
                 </div>
                 <div>
                   <label className="text-xs text-gray-500">비교시점</label>
-                  <p className="text-sm font-medium">{formatDate(data.comparisonDate)}</p>
+                  <p className="text-sm font-medium">{formatDate(data.comparisonDate, "kr")}</p>
                 </div>
               </div>
               <div>
@@ -170,7 +162,7 @@ export function PriceAdjustmentDialog({
                 </div>
                 <div>
                   <label className="text-xs text-gray-500">조정일</label>
-                  <p className="text-sm font-medium">{formatDate(data.adjustmentDate)}</p>
+                  <p className="text-sm font-medium">{formatDate(data.adjustmentDate, "kr")}</p>
                 </div>
               </div>
               <div>
@@ -190,8 +182,8 @@ export function PriceAdjustmentDialog({
 
           {/* 메타 정보 */}
           <div className="text-xs text-gray-500 space-y-1">
-            <p>작성일: {formatDate(data.createdAt)}</p>
-            <p>수정일: {formatDate(data.updatedAt)}</p>
+            <p>작성일: {formatDate(data.createdAt, "kr")}</p>
+            <p>수정일: {formatDate(data.updatedAt, "kr")}</p>
           </div>
         </div>
       </DialogContent>
-- 
cgit v1.2.3

