Skip to content

Commit 3465f98

Browse files
committed
Added timeZone arg (#2074)
1 parent 07a2d12 commit 3465f98

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/jsapi-components/src/spectrum/utils/usePickerProps.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function usePickerProps<TProps>({
6060
}: PickerWithTableProps<TProps>): UsePickerProps<TProps> {
6161
const { itemHeight } = usePickerItemScale();
6262

63-
const { getFormattedString: formatValue } = useFormatter(settings);
63+
const { getFormattedString: formatValue, timeZone } = useFormatter(settings);
6464

6565
// `null` is a valid value for `selectedKey` in controlled mode, so we check
6666
// for explicit `undefined` to identify uncontrolled mode.
@@ -127,6 +127,7 @@ export function usePickerProps<TProps>({
127127
itemHeight,
128128
deserializeRow,
129129
searchColumnNames,
130+
timeZone,
130131
});
131132

132133
const normalizedItems = viewportData.items as (

0 commit comments

Comments
 (0)