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" >