From: Philipp Klaus Date: Fri, 25 Aug 2017 12:24:12 +0000 (+0200) Subject: DASH: transform to timestamp to local TZ on client X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=611261880a58f629dd305305b3a63be5371dee17;p=mvd_epics.git DASH: transform to timestamp to local TZ on client --- diff --git a/python_suite/dashboard/static/js/sparkline.js b/python_suite/dashboard/static/js/sparkline.js index 7a34139..44e800a 100644 --- a/python_suite/dashboard/static/js/sparkline.js +++ b/python_suite/dashboard/static/js/sparkline.js @@ -127,7 +127,7 @@ function sparkline() { if (error) { console.log(error); return; } data.forEach(function (d) { - d[0] = new Date(d[0]); + d[0] = new Date(d[0] - (new Date().getTimezoneOffset()*60*1000)); d[1] = d[1]; });