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