mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #14831 from grafana/fix/time-range-overrides
Fix panel time overrides not being applied fully
This commit is contained in:
commit
11ad92c08e
@ -143,12 +143,9 @@ export function applyPanelTimeOverrides(panel: PanelModel, timeRange: TimeRange)
|
|||||||
const timeShift = '-' + timeShiftInterpolated;
|
const timeShift = '-' + timeShiftInterpolated;
|
||||||
newTimeData.timeInfo += ' timeshift ' + timeShift;
|
newTimeData.timeInfo += ' timeshift ' + timeShift;
|
||||||
newTimeData.timeRange = {
|
newTimeData.timeRange = {
|
||||||
from: dateMath.parseDateMath(timeShift, timeRange.from, false),
|
from: dateMath.parseDateMath(timeShift, newTimeData.timeRange.from, false),
|
||||||
to: dateMath.parseDateMath(timeShift, timeRange.to, true),
|
to: dateMath.parseDateMath(timeShift, newTimeData.timeRange.to, true),
|
||||||
raw: {
|
raw: newTimeData.timeRange.raw,
|
||||||
from: timeRange.from,
|
|
||||||
to: timeRange.to,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user