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: marnusw/date-fns-tz#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
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-localizetogether withdate-fns-tz. And we have faced the problem during last review by apple.I have opened issue for
date-fns-tzrepo previously and here's their response: marnusw/date-fns-tz#241After this long intro my question is: is it possible to add support for
getTimeZonefunction 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
formattogetTimeZonefunction. And add mapping ofaliasestozone IDaccording to https://nodatime.org/timezonesCode sample
No response