diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-09 10:32:34 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-09-09 10:32:34 +0000 |
| commit | c62ec046327fd388ebce04571b55910747e69a3b (patch) | |
| tree | 41ccdc4a8dea99808622f6d5d52014ac59a2d7ab /components/pq-input | |
| parent | ebcec3f296d1d27943caf8a3aed26efef117cdc5 (diff) | |
(정희성, 최겸, 대표님) formatDate 변경 등
Diffstat (limited to 'components/pq-input')
| -rw-r--r-- | components/pq-input/pq-input-tabs.tsx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/components/pq-input/pq-input-tabs.tsx b/components/pq-input/pq-input-tabs.tsx index 7ae6d16a..534e1a05 100644 --- a/components/pq-input/pq-input-tabs.tsx +++ b/components/pq-input/pq-input-tabs.tsx @@ -77,6 +77,7 @@ import { ProjectPQ, } from "@/lib/pq/service" import { PQGroupData } from "@/lib/pq/service" +import { formatDate } from "@/lib/utils" // ---------------------------------------------------------------------- // 1) Define client-side file shapes @@ -573,7 +574,7 @@ export function PQInputTabs({ {projectData.submittedAt && ( <div className="col-span-1 md:col-span-2"> <p className="text-sm font-medium text-muted-foreground">제출일</p> - <p>{formatDate(projectData.submittedAt)}</p> + <p>{formatDate(projectData.submittedAt, "kr")}</p> </div> )} </div> @@ -604,16 +605,6 @@ export function PQInputTabs({ } }; - // 날짜 형식화 함수 - const formatDate = (date: Date) => { - if (!date) return "-"; - return new Date(date).toLocaleDateString("ko-KR", { - year: "numeric", - month: "long", - day: "numeric", - }); - }; - // ---------------------------------------------------------------------- // H) Render // ---------------------------------------------------------------------- |
