From c802c68523bb9b817dc7e0829c711811352d82ef Mon Sep 17 00:00:00 2001 From: tdurieux Date: Sun, 12 Sep 2021 00:21:02 +0200 Subject: [PATCH] fix(#83): keep original date when editing a conference --- public/script/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/script/app.js b/public/script/app.js index 71a00fa..dd17e44 100644 --- a/public/script/app.js +++ b/public/script/app.js @@ -1548,6 +1548,8 @@ angular .get("/api/conferences/" + $routeParams.conferenceId) .then((res) => { $scope.options = res.data; + $scope.options.startDate = new Date($scope.options.startDate); + $scope.options.endDate = new Date($scope.options.endDate); }); } if ($routeParams.conferenceId) {