This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository coselmar. See http://git.codelutin.com/coselmar.git commit 418722afa6ce244220fea91f9260de397799905c Author: Yannick Martel <martel@©odelutin.com> Date: Mon Dec 8 09:49:30 2014 +0100 fix usage of date in js : convert it to timestamps before server call --- coselmar-ui/src/main/webapp/js/coselmar-controllers.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js index 8e1abde..9a217cc 100644 --- a/coselmar-ui/src/main/webapp/js/coselmar-controllers.js +++ b/coselmar-ui/src/main/webapp/js/coselmar-controllers.js @@ -102,6 +102,10 @@ coselmarControllers.controller("NewDocumentCtrl", ['$scope', '$location', 'docum $scope.createNewDocument = function(isValidForm){ + if (angular.isDate($scope.question.publicationDate)) { + $scope.document.publicationDate = $scope.document.publicationDate.getTime(); + } + // Call service to create a new document if (isValidForm) { documentService.createDocument( @@ -289,6 +293,10 @@ coselmarControllers.controller("NewQuestionCtrl", ['$scope', '$route', '$locatio $scope.saveQuestion = function(isValidForm){ + if (angular.isDate($scope.question.deadline)) { + $scope.question.deadline = $scope.question.deadline.getTime(); + } + // Call service to create a new user if(isValidForm) { questionsService.saveQuestion($scope.question, function() { @@ -424,6 +432,11 @@ coselmarControllers.controller('ModalCreateDocumentsCtrl', function ($scope, $mo $scope.existingKeywords = []; $scope.create = function (isValidForm) { + + if (angular.isDate($scope.question.publicationDate)) { + $scope.document.publicationDate = $scope.document.publicationDate.getTime(); + } + if (isValidForm) { if ($scope.upload.file) { $scope.document.withFile = true; -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.