diff --git a/egovframe-template-simple-react-contribution/.gitignore b/egovframe-template-simple-react-contribution/.gitignore index 18ee28c..7a0ffae 100644 --- a/egovframe-template-simple-react-contribution/.gitignore +++ b/egovframe-template-simple-react-contribution/.gitignore @@ -30,3 +30,6 @@ yarn-error.log* # code .history + +# Develop environment +.env.development.local \ No newline at end of file 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 584340b..6cb7e7e 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 @@ -18,8 +18,8 @@ function Schedules(props) { console.log("EgovAdminScheduleList [location] : ", location); const DATE = new Date(); - //const TODAY = new Date(DATE.getFullYear(), DATE.getMonth(), DATE.getDate()); - const TODAY = new Date(2023, 2, DATE.getDate()); + const TODAY = new Date(DATE.getFullYear(), DATE.getMonth(), DATE.getDate()); + //const TODAY = new Date(2023, 2, DATE.getDate()); const [searchCondition, setSearchCondition] = useState(location.state?.searchCondition || { schdulSe: '', year: TODAY.getFullYear(), month: TODAY.getMonth(), date: TODAY.getDate() }); const [calendarTag, setCalendarTag] = useState([]); @@ -160,18 +160,14 @@ function Schedules(props) { scheduleList.map((schedule, scheduleIdx) => { let test = schedule.evt_start_dt.replace('-',''); console.log( test ); - let iBeginDate = Number(schedule.evt_start_dt.replace('-','').substring(0, 8)); - let iEndDate = Number(schedule.evt_end_dt.replace('-','').substring(0, 8)); - - /* - let iBeginDate = Number(schedule.schdulBgnde.substring(0, 8)); - let iEndDate = Number(schedule.schdulEndde.substring(0, 8)); + let iBeginDate = Number(schedule.evt_start_dt.substring(0, 8)); + let iEndDate = Number(schedule.evt_end_dt.substring(0, 8)); innerConsole("scheduleList ", day, scheduleIdx, iBeginDate, iUseDate, iEndDate, iUseDate >= iBeginDate && iUseDate <= iEndDate); innerConsole("schedule.schdulId ", schedule.schdulId); if (iUseDate >= iBeginDate && iUseDate <= iEndDate) { return ( <> - {schedule.schdulNm} @@ -179,9 +175,6 @@ function Schedules(props) { ); } else return <> - */ - - return <> }) }