From 964b0ebf34023bd7366a6b10d3b472fdd7b25499 Mon Sep 17 00:00:00 2001 From: thkim Date: Mon, 18 Mar 2024 17:56:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20K)=20=EC=9C=84=EC=9B=90=ED=9A=8C=20?= =?UTF-8?q?=EC=9D=BC=EC=A0=95=EA=B4=80=EB=A6=AC=20=EB=82=A0=EC=A7=9C?= =?UTF-8?q?=ED=98=95=EC=8B=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/admin/committee/Schedules.jsx | 2 +- .../admin/committee/Schedules/Detail.jsx | 23 +++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx index 01a4b16..15dc3bd 100644 --- a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx +++ b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx @@ -354,7 +354,7 @@ function Schedules(props) { ? - + diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules/Detail.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules/Detail.jsx index 2fab034..af8a6aa 100644 --- a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules/Detail.jsx +++ b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules/Detail.jsx @@ -36,6 +36,25 @@ function SchedulesDetail(props) { } + const convertDate = (str) => { + if( !str ) { + return null; + } + let year = str.substring(0, 4); + let month = str.substring(5, 7); + let date = str.substring(8, 10); + let hour = str.substring(11, 13); + let minute = str.substring(14, 16); + return { + year: year, + month: month, + date: date, + hour: hour, + minute: minute, + dateForm: year + "-" + month + "-" + date + " " + hour + ":" + minute + "" + } + } + const onClickDeleteSchedule = (schdulId) => { const deleteBoardURL = `/schedule/${schdulId}`; @@ -115,8 +134,8 @@ function SchedulesDetail(props) {
{scheduleDetail.location}
-
날짜/시간
-
{scheduleDetail.startDate} ~ {scheduleDetail.endDate}
+
날짜/시간
+
{ convertDate(scheduleDetail?.startDate)?.dateForm} ~ {convertDate(scheduleDetail?.endDate)?.dateForm}
내용