I have a list of time zones that I want the user to choose from. So, I thought I can just call java.time.ZoneId.getAvailableZoneIds()
and use the method getDisplayName
on them. This results in a lot of duplicate entries like
Central European Time
Even if I add the time zone offset they are not unqiue. However, the ID of a ZoneId
distinguishes the entries but how can I localize them? The IDs are always in English like
Europe/Rome