From 32ae0ea13e537ba58a845fdc7ee63cf46046c91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 23 Dec 2014 11:31:49 +0100 Subject: [PATCH] Plugins: Custom datasource example adapted to return timestamps in millieseconds, Fixes #1263 --- src/plugins/datasource.example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/datasource.example.js b/src/plugins/datasource.example.js index fcc160ec569..1861474e1a3 100644 --- a/src/plugins/datasource.example.js +++ b/src/plugins/datasource.example.js @@ -21,8 +21,8 @@ function (angular, _, kbn) { CustomDatasource.prototype.query = function(options) { // get from & to in seconds - var from = kbn.parseDate(options.range.from).getTime() / 1000; - var to = kbn.parseDate(options.range.to).getTime() / 1000; + var from = kbn.parseDate(options.range.from).getTime(); + var to = kbn.parseDate(options.range.to).getTime(); var series = []; var stepInSeconds = (to - from) / options.maxDataPoints;