Skip to content

Commit

Permalink
Added timeZone arg (#2074)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Jun 27, 2024
1 parent aa195a3 commit c0407f6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function usePickerProps<TProps>({
}: PickerWithTableProps<TProps>): UsePickerProps<TProps> {
const { itemHeight } = usePickerItemScale();

const { getFormattedString: formatValue } = useFormatter(settings);
const { getFormattedString: formatValue, timeZone } = useFormatter(settings);

// `null` is a valid value for `selectedKey` in controlled mode, so we check
// for explicit `undefined` to identify uncontrolled mode.
Expand Down Expand Up @@ -127,6 +127,7 @@ export function usePickerProps<TProps>({
itemHeight,
deserializeRow,
searchColumnNames,
timeZone,
});

const normalizedItems = viewportData.items as (
Expand Down

0 comments on commit c0407f6

Please sign in to comment.