Skip to content

Commit

Permalink
Fix heatmap timeZone configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
markov00 committed Nov 9, 2021
1 parent c7520a2 commit 12cf9ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ export const HeatmapComponent: FC<HeatmapRenderProps> = ({
unit: esInterval.unit as ESCalendarIntervalUnit,
value: esInterval.value,
},
timeZone,
};
}
}
Expand Down Expand Up @@ -347,6 +346,7 @@ export const HeatmapComponent: FC<HeatmapRenderProps> = ({
brushArea: {
stroke: isDarkTheme ? 'rgb(255, 255, 255)' : 'rgb(105, 112, 125)',
},
timeZone,
};

if (!chartData || !chartData.length) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ export const SwimlaneContainer: FC<SwimlaneProps> = ({
stroke: isDarkTheme ? 'rgb(255, 255, 255)' : 'rgb(105, 112, 125)',
},
...(showLegend ? { maxLegendHeight: LEGEND_HEIGHT } : {}),
timeZone: 'UTC',
};

return config;
Expand Down Expand Up @@ -478,7 +479,6 @@ export const SwimlaneContainer: FC<SwimlaneProps> = ({
// adding a fallback to 1m bucket
value: xDomain?.minInterval ?? 1000 * 60,
},
timeZone: 'UTC',
}}
ySortPredicate="dataIndex"
config={swimLaneConfig}
Expand Down

0 comments on commit 12cf9ff

Please sign in to comment.