Commit bf5268c0 by Mitsuhiro Tanda

fix time

parent d98d8a40
...@@ -60,8 +60,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) { ...@@ -60,8 +60,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) {
} }
var request = { var request = {
from: options.rangeRaw.from, from: options.range.from.valueOf().toString(),
to: options.rangeRaw.to, to: options.range.to.valueOf().toString(),
queries: queries queries: queries
}; };
...@@ -138,8 +138,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) { ...@@ -138,8 +138,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) {
this.doMetricQueryRequest = function (subtype, parameters) { this.doMetricQueryRequest = function (subtype, parameters) {
var range = timeSrv.timeRange(); var range = timeSrv.timeRange();
return backendSrv.post('/api/tsdb/query', { return backendSrv.post('/api/tsdb/query', {
from: range.from, from: range.from.valueOf().toString(),
to: range.to, to: range.to.valueOf().toString(),
queries: [ queries: [
_.extend({ _.extend({
refId: 'metricFindQuery', refId: 'metricFindQuery',
...@@ -275,8 +275,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) { ...@@ -275,8 +275,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) {
}; };
return backendSrv.post('/api/tsdb/query', { return backendSrv.post('/api/tsdb/query', {
from: options.range.from, from: options.range.from.valueOf().toString(),
to: options.range.to, to: options.range.to.valueOf().toString(),
queries: [ queries: [
_.extend({ _.extend({
refId: 'annotationQuery', refId: 'annotationQuery',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment