[incident #1758979] CPS chart times fixed

Change-Id: Ic190b441dfca74313a5d42f35cd60ccc4f6201cb
Signed-off-by: József Gyürüsi <jozsef.gyurusi@ericsson.com>
diff --git a/htdocs/WebApplicationFramework/Views/View_Chart.js b/htdocs/WebApplicationFramework/Views/View_Chart.js
index 41d9158..2c230b8 100644
--- a/htdocs/WebApplicationFramework/Views/View_Chart.js
+++ b/htdocs/WebApplicationFramework/Views/View_Chart.js
@@ -60,6 +60,7 @@
             

             if (v_customData.type == "timeseries") {

                 options.xaxis.mode = "time";

+                options.xaxis.timezone = "browser";

                 options.xaxis.timeformat = "%H:%M:%S";

                 //options.grid.margin.bottom = 10;

             } else if (v_customData.type == "distribution") {

@@ -251,7 +252,7 @@
         $("#" + v_mainId).on("plothover", function(event, pos, data) {

             if (data != undefined) {

                 if (v_customData.type == "timeseries") {

-                    $("#" + v_mainId).prop("title", data.series.label + "\nx: " + Date(data.datapoint[0]) + "\ny: " + data.datapoint[1]);

+                    $("#" + v_mainId).prop("title", data.series.label + "\nx: " + new Date(data.datapoint[0]) + "\ny: " + data.datapoint[1]);

                 } else {

                     $("#" + v_mainId).prop("title", data.series.label + "\n" + data.datapoint[1]);

                 }