From e8042788d0354f7ac158ad5756eb3bb262f2142b Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Wed, 8 Jan 2020 19:57:16 +0100 Subject: [PATCH] change apexcharts library location, enhance date selection --- snippets/graph.html | 10 +++++----- static/js/apexcharts.min.js | 16 ++++++++++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 static/js/apexcharts.min.js diff --git a/snippets/graph.html b/snippets/graph.html index 0ff9bab..6559ae7 100644 --- a/snippets/graph.html +++ b/snippets/graph.html @@ -49,8 +49,8 @@ $(function() { - var start = moment.utc({hour: 0}); - var end = moment.utc(); + var start = moment({hour: 0}); + var end = moment(); var s_start = start.utc().format('YYYY-MM-DDTHH:mm:ss[Z]'); var s_end = end.utc().format('YYYY-MM-DDTHH:mm:ss[Z]'); @@ -91,8 +91,8 @@ $(function() { }); $('#reportrange').daterangepicker({ - startDate: start, - endDate: end, + startDate: start.local(), + endDate: end.local(), regional: [ "de" ], "locale": { format: 'DD.MM.YYYY', @@ -149,7 +149,7 @@ $(function() { - +