From 611261880a58f629dd305305b3a63be5371dee17 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Fri, 25 Aug 2017 14:24:12 +0200 Subject: [PATCH] DASH: transform to timestamp to local TZ on client --- python_suite/dashboard/static/js/sparkline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }); -- 2.43.0