mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 23:55:47 -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;
|
||||
newTimeData.timeInfo += ' timeshift ' + timeShift;
|
||||
newTimeData.timeRange = {
|
||||
from: dateMath.parseDateMath(timeShift, timeRange.from, false),
|
||||
to: dateMath.parseDateMath(timeShift, timeRange.to, true),
|
||||
raw: {
|
||||
from: timeRange.from,
|
||||
to: timeRange.to,
|
||||
},
|
||||
from: dateMath.parseDateMath(timeShift, newTimeData.timeRange.from, false),
|
||||
to: dateMath.parseDateMath(timeShift, newTimeData.timeRange.to, true),
|
||||
raw: newTimeData.timeRange.raw,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user