zoontek / zoontek/react-native-localize
Support of IANA timezones
@zoontek is already working on this.
Since Jun 14, 2023.
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 225
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 3
Description
Why it is needed?
Hi!
I was not sure if it's a feature request or a bug report, but here it is:
On our project we using react-native-localize together with date-fns-tz. And we have faced the problem during last review by apple.
I have opened issue for date-fns-tz repo previously and here's their response: https://github.com/marnusw/date-fns-tz/issues/241
After this long intro my question is: is it possible to add support for getTimeZone function to return the time zone in a given format (INAA, for example). In order to prevent unexpected crashed and improve UX of date formatting.
Possible implementation
Provide optional value of format to getTimeZone function. And add mapping of aliases to zone ID according to https://nodatime.org/timezones
Code sample
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.