Enable datasources to be able to round off to a UTC day properly

This commit is contained in:
Chris Burkhart
2017-07-24 09:55:57 -07:00
parent 1652426dfe
commit 3e0b92d6fe
4 changed files with 20 additions and 4 deletions

View File

@@ -221,7 +221,10 @@ class MetricsPanelCtrl extends PanelCtrl {
"__interval_ms": {text: this.intervalMs, value: this.intervalMs},
});
var timezone = this.dashboard.getTimezone ? this.dashboard.getTimezone() : 'local';
var metricsQuery = {
timezone: timezone,
panelId: this.panel.id,
range: this.range,
rangeRaw: this.range.raw,