]> jspc29.x-matter.uni-frankfurt.de Git - mvd_epics.git/commitdiff
DASH: transform to timestamp to local TZ on client
authorPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Fri, 25 Aug 2017 12:24:12 +0000 (14:24 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Fri, 25 Aug 2017 12:24:12 +0000 (14:24 +0200)
python_suite/dashboard/static/js/sparkline.js

index 7a34139d8af2bc43bb2a3e5a7b7c3b330e482343..44e800a35e624c6d3d1d4b02a2050543cbfd4ca2 100644 (file)
@@ -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];
       });