Better names for OLSON/IANA time zones

2.5k Views Asked by At

We would like to convert windows time zones to OLSON time zones on our website. However the problem with OLSON time zones is that they use continents for naming instead of country names, e.g:

America/New_York
Asia/Kolkata
...

I don't think that any of our customers would expect that he/she must enter a continent name in order to find a correct time zone - and the list of time zones is much larger than that is used in windows - almost thousand. Even if a customer find out that he must enter a continent name, for example Asia then he must search in hundreds of time zones for all asia countries. That is very bad from usability point of view.

Is there any database to map OLSON/IANA time zone names to country-style names like:

America/New_York -> New York, USA
Asia/Kolkata -> Kolkata, India
1

There are 1 best solutions below

6
On

Short answer, there is no supplier for country-style names. If you want this, it is up to your efforts. Long answer: The IANA-TZDB is partitioned into regions, not countries, therefore the special form of identifiers (continent/city). From the theory file:

  • The tz database does not record a region's boundaries, and in many cases the boundaries are not known. For example, the zone America/Kentucky/Louisville represents a region around the city of Louisville, the boundaries of which are unclear.

  • Be robust in the presence of political changes. This reduces the number of updates and backward-compatibility hacks. For example, names of countries are ordinarily not used, to avoid incompatibilities when countries change their name (e.g. Zaire->Congo) or when locations change countries (e.g. Hong Kong from UK colony to China).

Many more details can be read in this file. The administrators of tzdb have expressed the wish to reduce the count of zone identifiers and to keep out all political issues away from tzdb, see especially the wild debate in september 2013 on IANA mailing list. Identifiers following country borders would often not be politically stable.