Commit bf5268c0 by Mitsuhiro Tanda

fix time

parent d98d8a40
......@@ -60,8 +60,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) {
}
var request = {
from: options.rangeRaw.from,
to: options.rangeRaw.to,
from: options.range.from.valueOf().toString(),
to: options.range.to.valueOf().toString(),
queries: queries
};
......@@ -138,8 +138,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) {
this.doMetricQueryRequest = function (subtype, parameters) {
var range = timeSrv.timeRange();
return backendSrv.post('/api/tsdb/query', {
from: range.from,
to: range.to,
from: range.from.valueOf().toString(),
to: range.to.valueOf().toString(),
queries: [
_.extend({
refId: 'metricFindQuery',
......@@ -275,8 +275,8 @@ function (angular, _, moment, dateMath, kbn, templatingVariable) {
};
return backendSrv.post('/api/tsdb/query', {
from: options.range.from,
to: options.range.to,
from: options.range.from.valueOf().toString(),
to: options.range.to.valueOf().toString(),
queries: [
_.extend({
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