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/bidding-info-header.tsx | 21 +--------------------
 1 file changed, 1 insertion(+), 20 deletions(-)

(limited to 'components/bidding/bidding-info-header.tsx')

diff --git a/components/bidding/bidding-info-header.tsx b/components/bidding/bidding-info-header.tsx
index c140920b..e109a8ca 100644
--- a/components/bidding/bidding-info-header.tsx
+++ b/components/bidding/bidding-info-header.tsx
@@ -1,31 +1,12 @@
 import { Bidding } from '@/db/schema/bidding'
 import { Building2, Package, User, DollarSign, Calendar } from 'lucide-react'
 import { contractTypeLabels, biddingTypeLabels } from '@/db/schema/bidding'
+import { formatDate } from '@/lib/utils'
 
 interface BiddingInfoHeaderProps {
   bidding: Bidding
 }
 
-function formatDate(date: Date | string | null | undefined, locale: 'KR' | 'EN' = 'KR'): string {
-  if (!date) return ''
-  
-  const dateObj = typeof date === 'string' ? new Date(date) : date
-  
-  if (locale === 'KR') {
-    return dateObj.toLocaleDateString('ko-KR', {
-      year: 'numeric',
-      month: '2-digit',
-      day: '2-digit'
-    }).replace(/\./g, '-').replace(/-$/, '')
-  }
-  
-  return dateObj.toLocaleDateString('en-US', {
-    year: 'numeric',
-    month: '2-digit',
-    day: '2-digit'
-  })
-}
-
 export function BiddingInfoHeader({ bidding }: BiddingInfoHeaderProps) {
   return (
     <div className="bg-white border rounded-lg p-6 mb-6 shadow-sm">
-- 
cgit v1.2.3

