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

[EDIT] 투표 종료 시간 포맷 변경

parent 3d4c5804
Branches
No related tags found
No related merge requests found
......@@ -37,7 +37,18 @@ function MeetingInfoForm() {
};
const handleVoteEnd = (event) => {
setEndVote(event.target.value);
const d = new Date(new Date(event.target.value) - 60 * 60 * 9 * 1000);
const ev =
d.getFullYear() +
"-" +
String(d.getMonth() + 1).padStart(2, "0") +
"-" +
String(d.getDate()).padStart(2, "0") +
"T" +
String(d.getHours()).padStart(2, "0") +
":" +
String(d.getMinutes()).padStart(2, "0");
setEndVote(ev);
};
const handleStartTimeChange = (selectedHour, selectedMinute) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment