세금계산서 하기 전에 저장

This commit is contained in:
leeheejin
2025-12-08 14:34:18 +09:00
parent 8ec5c987de
commit f04a3e3505
3 changed files with 21 additions and 6 deletions

View File

@@ -6,6 +6,11 @@
*/
import React, { useEffect, useState } from "react";
import {
Dialog,
DialogContent,
DialogHeader,
} from "@/components/ui/dialog";
import {
ResizableDialog,
ResizableDialogContent,
@@ -137,7 +142,9 @@ export function TableHistoryModal({
const formatDate = (dateString: string) => {
try {
return format(new Date(dateString), "yyyy년 MM월 dd일 HH:mm:ss", { locale: ko });
// DB는 UTC로 저장, 브라우저가 자동으로 로컬 시간(KST)으로 변환
const date = new Date(dateString);
return format(date, "yyyy년 MM월 dd일 HH:mm:ss", { locale: ko });
} catch {
return dateString;
}