diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/CommentsController.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/CommentsController.js index 251b54f78942d00b0392063b12167cc90f3eeb08..c542023a4bffe57f0e1d46e844eb098aa15cc33d 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/CommentsController.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/CommentsController.js @@ -40,7 +40,7 @@ function CommentsController(entity, mode, form) { this.addNewComment = function(newComment) { //New Data - var timestamp = Math.round(new Date().getTime() / 1000); + var timestamp = Math.round(new Date().getTime()); var userId = mainController.serverFacade.getUserId(); //Update Model diff --git a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/CommentsView.js b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/CommentsView.js index 3d4469226461b037e76db34cd455cf62e078adf2..e66af2582e14c8c5d334a8ef162dfdade3dc20a5 100644 --- a/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/CommentsView.js +++ b/plasmid/source/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/CommentsView.js @@ -52,7 +52,7 @@ function CommentsView(commentsController, commentsModel) { $buttonDelete = $("<a>", {"class" : "btn btn-default"}); $buttonDelete.append($("<span>", { "class" : "glyphicon glyphicon-minus-sign"})); } - var date = Util.getFormatedDate(new Date(parseInt(dateValue) * 1000)); + var date = Util.getFormatedDate(new Date(parseInt(dateValue))); var deleteEnabled = false; var $sufixComponent = null;