From 1fa31c5d06c0e52e21ef3495e8686d027eeded7e Mon Sep 17 00:00:00 2001 From: danielhep Date: Fri, 19 Apr 2024 17:32:24 -0700 Subject: [PATCH] feat: add support for timeZone parameter --- src/withReactIntl.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/withReactIntl.tsx b/src/withReactIntl.tsx index 9367bd6..e293db1 100644 --- a/src/withReactIntl.tsx +++ b/src/withReactIntl.tsx @@ -18,11 +18,12 @@ export const withReactIntl = ( const currentLocale = locale || defaultLocale; if (currentLocale && reactIntl) { - const {formats, messages, defaultRichTextElements} = reactIntl; + const {formats, messages, defaultRichTextElements, timeZone} = reactIntl; const safeFormats = formats ? formats[currentLocale] : undefined; if (messages) { return (