Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

ApplicationBase support time zone on IntlProvider #165

Open
nickpith opened this issue Mar 18, 2021 · 0 comments
Open

ApplicationBase support time zone on IntlProvider #165

nickpith opened this issue Mar 18, 2021 · 0 comments

Comments

@nickpith
Copy link

Feature Request

Description

We don't have a lot of guidance on date/time formatting. Ideally, I would like applications to use react-intl's FormattedDate component and methods to format date/times. This works well until you want to display times in a time zone other than the browser/system's default time zone. HealtheIntent allows tenants to specify a time zone for their applications to display date/times in.

It seems that IntlProvider has a timeZone prop that can be used. However, I don't believe we can specify it in ApplicationBase. I would like an application to specify the time zone once like locale and then have react-intl use that time zone. I think it is just adding an additional prop for time zone and passing it to IntlProvider.

Additional Context / Screenshots

@ Mentions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants