From 8effebf68193c43361d16208588df9d0247916a2 Mon Sep 17 00:00:00 2001 From: caadiq Date: Wed, 11 Mar 2026 21:49:13 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=20=EC=8B=9C=EA=B0=84?= =?UTF-8?q?=20KST=20=EC=A4=91=EB=B3=B5=20=EB=B3=B4=EC=A0=95,=20=EC=9D=BC?= =?UTF-8?q?=EC=A0=95=20=EC=B9=B4=EC=9A=B4=ED=8A=B8=20=EC=95=A0=EB=8B=88?= =?UTF-8?q?=EB=A9=94=EC=9D=B4=EC=85=98,=20HMR=20=EC=98=A4=EB=B2=84?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=20=EB=B9=84=ED=99=9C=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 로그 formatDateTime에서 UTC 메서드 사용하여 KST 이중 변환 방지 - 일반 일정 페이지 n개 일정 텍스트에 모드 전환 애니메이션 적용 - Vite HMR 오버레이 비활성화 (외부 봇 malformed URI 에러 방지) Co-Authored-By: Claude Opus 4.6 --- frontend/src/components/pc/admin/log/constants.js | 12 ++++++------ frontend/src/pages/pc/public/schedule/Schedule.jsx | 5 +++-- frontend/vite.config.js | 3 +++ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/pc/admin/log/constants.js b/frontend/src/components/pc/admin/log/constants.js index 1b377f4..a2ac8a3 100644 --- a/frontend/src/components/pc/admin/log/constants.js +++ b/frontend/src/components/pc/admin/log/constants.js @@ -56,14 +56,14 @@ export function parseSummary(summary) { return { prefix: decoded.substring(0, idx), detail: decoded.substring(idx + 2) }; } -// 날짜/시간 포맷 +// 날짜/시간 포맷 (DB에 KST로 저장되어 있으므로 UTC 기준으로 읽음) export function formatDateTime(dateStr) { const date = new Date(dateStr); - const y = date.getFullYear(); - const month = String(date.getMonth() + 1).padStart(2, '0'); - const day = String(date.getDate()).padStart(2, '0'); - const hours = String(date.getHours()).padStart(2, '0'); - const minutes = String(date.getMinutes()).padStart(2, '0'); + const y = date.getUTCFullYear(); + const month = String(date.getUTCMonth() + 1).padStart(2, '0'); + const day = String(date.getUTCDate()).padStart(2, '0'); + const hours = String(date.getUTCHours()).padStart(2, '0'); + const minutes = String(date.getUTCMinutes()).padStart(2, '0'); return `${y}.${month}.${day} ${hours}:${minutes}`; } diff --git a/frontend/src/pages/pc/public/schedule/Schedule.jsx b/frontend/src/pages/pc/public/schedule/Schedule.jsx index abb2f61..20c49be 100644 --- a/frontend/src/pages/pc/public/schedule/Schedule.jsx +++ b/frontend/src/pages/pc/public/schedule/Schedule.jsx @@ -470,7 +470,7 @@ function PCSchedule() { animate={{ opacity: 1, scale: 1 }} exit={{ opacity: 0, scale: 0.95 }} transition={{ duration: 0.15 }} - className="flex items-center gap-3" + className="flex items-center gap-3 w-full" >