Skip to content
Snippets Groups Projects
Commit 9fd42664 authored by 이권민's avatar 이권민
Browse files

[EDIT] 투표 종료 시간 display 수정

parent c51a54d6
Branches
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ function MeetingInfoForm() {
const [meetingPurpose, setMeetingPurpose] = useState("");
const [number, setNumber] = useState();
const [endVote, setEndVote] = useState("");
const [endVoteForDisplay, setEndVoteForDisplay] = useState("");
const [startTime, setStartTime] = useState("");
const [endTime, setEndTime] = useState("");
const [startNum, setStartNum] = useState(0);
......@@ -37,6 +38,7 @@ function MeetingInfoForm() {
};
const handleVoteEnd = (event) => {
setEndVoteForDisplay(event.target.value);
const d = new Date(new Date(event.target.value) - 60 * 60 * 9 * 1000);
const ev =
d.getFullYear() +
......@@ -157,7 +159,7 @@ function MeetingInfoForm() {
<Input
classname="vote-end"
type="datetime-local"
value={endVote}
value={endVoteForDisplay}
onChange={handleVoteEnd}
/>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment