Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a way to get country and city name(s) for a given IANA time zone identifier #47

Open
tomkludy opened this issue Sep 20, 2018 · 3 comments

Comments

@tomkludy
Copy link

I have a need to accept IANA time zones as both input and output within my application. It is not practical for me to change the interfaces to accept country and time zone independently. Moreover, on output, I have a time zone identifier but can't disambiguate it (I.e. if I have "America/Tijuana" or "America/Los_Angeles" I have to show the user more than just "Pacific Time").

I have submitted a pull request (#46) with an implementation that can allow a caller to display extended information (countries and city) about the time zone.

I wasn't sure if you pay close attention to the pull requests, or if it would be better to initiate a discussion within an issue 😄

@tomkludy
Copy link
Author

tomkludy commented Oct 9, 2018

Hi, just touching base again on this issue. Any feedback on the issue or on the pull request?

Thanks!

@tomkludy
Copy link
Author

I suspect you are very busy and haven't had a chance to look at it closely? I would like to get your feedback on this, and whether it could be considered for inclusion into the library.

Alternatively, if you have any other suggestions for ways to display a stored time zone value, in a meaningful, human-readable and localized way? For example, with input of "America/Sao_Paulo" and locale "pt-BR" then I want to display "Horário de Brasília (São Paulo)".

I could not find any existing APIs in the library to get the localized string (country name + city name) necessary to achieve this. But if I am missing something please let me know!

@mattjohnsonpint
Copy link
Owner

Hi Tom,

Thanks for your contributions! I'm sorry it's taken me so long to get back to you. I have been dealing with some personal matters, and haven't made much time for open source lately.

I will endeavor to put some time to this in the next week or so.

Thanks for your patience.
-Matt

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

No branches or pull requests

2 participants