From 5aeb76850d1f01f51d2314d4a3c260e1936dd8fc Mon Sep 17 00:00:00 2001 From: Brian Ingles Date: Thu, 20 Jun 2024 14:12:17 -0500 Subject: [PATCH] Added timeZone arg (#2074) --- packages/jsapi-components/src/spectrum/utils/usePickerProps.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/jsapi-components/src/spectrum/utils/usePickerProps.ts b/packages/jsapi-components/src/spectrum/utils/usePickerProps.ts index 20f92117dd..9734d267a1 100644 --- a/packages/jsapi-components/src/spectrum/utils/usePickerProps.ts +++ b/packages/jsapi-components/src/spectrum/utils/usePickerProps.ts @@ -60,7 +60,7 @@ export function usePickerProps({ }: PickerWithTableProps): UsePickerProps { 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. @@ -127,6 +127,7 @@ export function usePickerProps({ itemHeight, deserializeRow, searchColumnNames, + timeZone, }); const normalizedItems = viewportData.items as (