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

---
 lib/site-visit/client-site-visit-wrapper.tsx | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

(limited to 'lib/site-visit/client-site-visit-wrapper.tsx')

diff --git a/lib/site-visit/client-site-visit-wrapper.tsx b/lib/site-visit/client-site-visit-wrapper.tsx
index c93060b3..a23a78d7 100644
--- a/lib/site-visit/client-site-visit-wrapper.tsx
+++ b/lib/site-visit/client-site-visit-wrapper.tsx
@@ -29,6 +29,7 @@ import type { VendorInfoFormValues } from "./vendor-info-sheet"
 import { submitVendorInfoAction } from "./service"
 import { SiteVisitDetailDialog } from "./site-visit-detail-dialog"
 import { ShiAttendeesDialog } from "./shi-attendees-dialog"
+import { formatDate } from "../utils"
 // SHI 참석자 총 인원수 계산 함수
 function getTotalShiAttendees(shiAttendees: Record<string, unknown> | null): number {
   if (!shiAttendees) return 0
@@ -178,11 +179,6 @@ export function ClientSiteVisitWrapper({
     }
   }
 
-  const formatDate = (date: Date | null) => {
-    if (!date) return "-"
-    return format(date, "yyyy.MM.dd", { locale: ko })
-  }
-
   const formatDateRange = (startDate: Date | null, endDate: Date | null) => {
     if (!startDate) return "-"
     if (!endDate || startDate.getTime() === endDate.getTime()) {
@@ -362,7 +358,7 @@ export function ClientSiteVisitWrapper({
                     {formatDateRange(request.requestedStartDate, request.requestedEndDate)}
                   </TableCell>
                   <TableCell>
-                    {formatDate(request.actualAt)}
+                    {formatDate(request.actualAt, "kr")}
                   </TableCell>
                   <TableCell>
                     {request.result ? (
-- 
cgit v1.2.3

