diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index 835be72cc..8d59d9f32 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -60,6 +60,7 @@ hide-weekdays title="дата окончания" /> + { + updateEndDate() }) @@ -370,7 +372,8 @@ export default { form.value.startDate.setHours(hours, minutes); }; const updateEndDate = () => { - const [hours, minutes] = selectedTimeStart.value.split(":").map(Number); + const [hours, minutes] = selectedTimeEnd.value.split(":").map(Number); + console.log( form.value.endDate); form.value.endDate.setHours(hours, minutes); };