mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TimeRangePicker: Absolute timeranges with timezone (#53763)
This commit is contained in:
parent
2d391c98d2
commit
b5cb7738da
@ -130,7 +130,7 @@ const NarrowScreenForm: React.FC<FormProps> = (props) => {
|
||||
const collapsed = hideQuickRanges ? false : collapsedFlag;
|
||||
|
||||
const onChangeTimeOption = (timeOption: TimeOption) => {
|
||||
return onChange(mapOptionToTimeRange(timeOption));
|
||||
return onChange(mapOptionToTimeRange(timeOption, timeZone));
|
||||
};
|
||||
|
||||
return (
|
||||
@ -176,7 +176,7 @@ const FullScreenForm: React.FC<FormProps> = (props) => {
|
||||
const theme = useTheme2();
|
||||
const styles = getFullScreenStyles(theme, props.hideQuickRanges);
|
||||
const onChangeTimeOption = (timeOption: TimeOption) => {
|
||||
return onChange(mapOptionToTimeRange(timeOption));
|
||||
return onChange(mapOptionToTimeRange(timeOption, timeZone));
|
||||
};
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user