From 52a6a46e802d7a92fc75a55ddb24ccfb8a325b38 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Tue, 28 Nov 2017 15:45:18 +0000 Subject: [PATCH] SSDM-5971 : Bugfix Date month offset fix on edit SVN: 38973 --- .../eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js index 5f88260b25c..b76d3b8fb9f 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/Util.js @@ -466,7 +466,7 @@ var Util = new function() { var yearTimeAndOffset = dateAsString.split(" "); var yearParts = yearTimeAndOffset[0].split("-"); var timeParts = yearTimeAndOffset[1].split(":"); - return new Date(yearParts[0],yearParts[1],yearParts[2], timeParts[0], timeParts[1], timeParts[2]); + return new Date(yearParts[0],parseInt(yearParts[1])-1,yearParts[2], timeParts[0], timeParts[1], timeParts[2]); } return null; } -- GitLab