summaryrefslogtreecommitdiff
path: root/components/pq-input
diff options
context:
space:
mode:
Diffstat (limited to 'components/pq-input')
-rw-r--r--components/pq-input/pq-input-tabs.tsx13
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
// ----------------------------------------------------------------------