mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix time
This commit is contained in:
parent
d98d8a404f
commit
bf5268c0b4
@ -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) {
|
|||||||
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) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
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',
|
||||||
|
Loading…
Reference in New Issue
Block a user