TimeRangePicker: Absolute timeranges with timezone (#53763) (#53818)

(cherry picked from commit b5cb7738da)

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-08-17 07:04:44 -04:00
committed by GitHub
co-authored by Victor Marin
parent 42cf51b4cb
commit 9f5b714e16
@@ -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 (