mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'day_rounding' of https://github.com/ctide/grafana into ctide-day_rounding2
This commit is contained in:
@@ -195,10 +195,11 @@ class TimeSrv {
|
||||
from: moment.isMoment(this.time.from) ? moment(this.time.from) : this.time.from,
|
||||
to: moment.isMoment(this.time.to) ? moment(this.time.to) : this.time.to,
|
||||
};
|
||||
var timezone = this.dashboard && this.dashboard.getTimezone ? this.dashboard.getTimezone() : 'local';
|
||||
|
||||
return {
|
||||
from: dateMath.parse(raw.from, false),
|
||||
to: dateMath.parse(raw.to, true),
|
||||
from: dateMath.parse(raw.from, false, timezone),
|
||||
to: dateMath.parse(raw.to, true, timezone),
|
||||
raw: raw
|
||||
};
|
||||
}
|
||||
|
||||
@@ -217,7 +217,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,
|
||||
|
||||
Reference in New Issue
Block a user