| @@ -41,12 +41,15 @@ function setError(state, action) { | |||
| function setComments(state, action) { | |||
| const currentDate = new Date(); | |||
| console.log("Ovde smo" + currentDate); | |||
| var datetime = | |||
| currentDate.getFullYear() + | |||
| "-" + | |||
| (currentDate.getMonth() + 1) + | |||
| (currentDate.getMonth() <= 9 ? "0" + (currentDate.getMonth() + 1) : currentDate.getMonth() + 1) + | |||
| "-" + | |||
| currentDate.getDate() + | |||
| (currentDate.getDate() <= 9 | |||
| ? "0" + currentDate.getDate() | |||
| : currentDate.getDate()) + | |||
| "T" + | |||
| currentDate.getHours() + | |||
| ":" + | |||
| @@ -69,6 +72,7 @@ function setComments(state, action) { | |||
| comments: [...state.candidate.comments, obj], | |||
| }, | |||
| }; | |||
| } | |||
| function setCommentsError(state, action) { | |||