Skip to main content

Localize Time Zone Names in Pickers Without Raw IANA IDs

2026-11-26

Localize Time Zone Names in Pickers Without Raw IANA IDs

A user in Kyiv opens your scheduling settings. The app has already detected their zone, and the summary line says Europe/Kiev. They switch off automatic detection, type "Kyiv" into the picker, and get no results, because the list was built from a different source that spells the city differently. A German user on the same screen sees "Pacific Standard Time" in English and "PST" next to every meeting, an abbreviation nobody in Germany uses.

Localized time zone names decide whether people can find, read, and trust the zone your app uses for their bookings, reminders, and reports. This guide is for web and mobile engineers who own those screens. It covers where the names come from on each platform, which name style fits which screen, and how to match a detected zone to a picker entry without string comparisons that break when a zone is renamed.

The short answer

  1. Store the IANA identifier as the value. Never show it as the label.
  2. Build labels from the platform's CLDR data in the user's display locale, not from a hand-written English list.
  3. Use generic names for pickers and recurring events, and specific names only when you show one instant.
  4. Treat abbreviations as optional. Most locales get an offset instead, and that is correct.
  5. Canonicalize detected and listed IDs in the same runtime before you compare them.
  6. Make the picker searchable by localized city, country, and generic zone name.
  7. Test with locales that have no abbreviations and with zones that were renamed.

Why zone labels go wrong

The obvious data source is the zone list itself. MDN describes Intl.supportedValuesOf("timeZone") as returning the time zone identifiers the implementation supports, and notes there are over 400 in common use. Those strings are identifiers, not names. America/Argentina/Buenos_Aires is a stable key. It is not a label anyone should read, and it never changes with the user's language.

Teams know this, so they hand-build a list. Practitioners have asked for years how to generate a time zone dropdown. One Stack Overflow question about building a drop-down list of time zones in PHP has a score of 150 and more than 144,000 views, and the options in it are hard-coded English strings such as "[UTC - 10] Hawaii-Aleutian". Another asker wants an HTML dropdown with labels like "(GMT) London", and a Python developer asks how to get a human-readable zone name to show the user. These are author reports, but they show the same pattern: the list gets built once, in English, with a fixed offset baked into each label.

Third-party pickers often keep that shape. The react-timezone-select README documents label styles such as original, altName, and abbrev, and lets you override labels per zone, but it does not document a locale option. The i18n-timezones package does ship translations, sourced from CLDR, for 36 locales and 152 friendly zone names. That helps, but it is a fixed subset of zones and locales that you now have to keep current yourself.

An open ECMA-402 issue on enumerating time zones explains that a zone list was requested for pickers, and that a useful picker would also need human-friendly display names rather than IANA names.

Where localized time zone names actually live

CLDR already translates zone names, and the web, Apple, and Android platforms expose that data, so you do not need to translate them yourself.

UTS 35 Part 4 defines time zone names, metazones, and the fallback formats used when a locale lacks a string. A metazone groups zones that share a name for a period of time, so translators name the group once per locale instead of naming every city separately. When no name exists, the fallback chain produces a location format ("Los Angeles Time") or a localized GMT format ("GMT-8").

On the web, Intl.DateTimeFormat exposes these names through the timeZoneName option. MDN lists six values: short, long, shortOffset, longOffset, shortGeneric, and longGeneric, with examples such as "Pacific Time" and "Nordamerikanische Westküstenzeit" (MDN: Intl.DateTimeFormat() constructor). The same page notes that display may fall back to another format when a required string is unavailable. Use formatToParts() to pull out just the timeZoneName part instead of slicing a formatted date string.

function zoneLabel(zoneId: string, locale: string, at: Date, style: "longGeneric" | "long" | "shortOffset") {
  const parts = new Intl.DateTimeFormat(locale, { timeZone: zoneId, timeZoneName: style })
    .formatToParts(at);
  return parts.find((p) => p.type === "timeZoneName")?.value ?? zoneId;
}

zoneLabel("America/Los_Angeles", "de-DE", new Date(), "longGeneric");
// "Nordamerikanische Westküstenzeit"

On iOS and macOS, Foundation provides TimeZone.localizedName(for:locale:), which returns the zone's name localized for a given locale and takes a name style such as .generic, .standard, or .shortStandard.

let zone = TimeZone(identifier: "America/Los_Angeles")!
let label = zone.localizedName(for: .generic, locale: Locale.current) ?? zone.identifier

On Android, android.icu.text.TimeZoneNames exposes the CLDR model directly: zone and metazone display names by name type, with metazone mappings shared across all locales. The older java.util.TimeZone.getDisplayName(boolean, int, Locale) returns a short or long standard or daylight name for a locale. It has no generic style, so prefer the ICU class when you need "Pacific Time" rather than "Pacific Standard Time".

val names = android.icu.text.TimeZoneNames.getInstance(android.icu.util.ULocale.forLocale(locale))
val label = names.getDisplayName(
    "America/Los_Angeles",
    android.icu.text.TimeZoneNames.NameType.LONG_GENERIC,
    System.currentTimeMillis()
) ?: "America/Los_Angeles"

Choose generic names for pickers and recurring events

The timeZoneName options are not interchangeable, and picking the wrong one produces labels that are correct today and wrong in six months.

A specific name describes one moment: "Pacific Standard Time" in January, "Pacific Daylight Time" in July. A generic name describes the zone across the year: "Pacific Time". UTS 35 is explicit here. When a time refers to a recurring event, such as a meeting in a calendar, it says applications should use the generic non-location format for the zone instead of the specific one.

A common shortcut is to render whatever the formatter returns for new Date(). That produces a weekly stand-up labelled "9:00 Pacific Standard Time" that silently becomes wrong when daylight saving starts, or a settings screen that says "Central European Summer Time" to someone who chose their zone in October.

Use generic names such as Pacific Time for pickers and recurring events and specific names such as Pacific Standard Time only for one instant, so a weekly meeting label is not wrong for half the year. Use this rule:

Screen Name style Example (en-US)
Zone picker list and settings summary Generic (longGeneric, .generic, LONG_GENERIC) Pacific Time
Recurring event or weekly reminder Generic Pacific Time
One booked appointment or receipt timestamp Specific (long, .standard or daylight) Pacific Daylight Time
Compact secondary hint beside a picker row Localized offset (shortOffset) GMT-7

If you show an offset in the picker, compute it for a declared reference date, normally "now", and recompute it when the list opens. A label like "(UTC-08:00)" stored in a string table is wrong for every zone that observes daylight saving for part of the year.

Treat abbreviations as an English convenience

Many apps print "PST" or "CET" next to every time because that is what the developer sees. Abbreviations are much less universal than they look.

The IANA tz project says its abbreviations follow conventions in common use among English speakers, and that it assumes applications translate them as part of normal localization, giving the example of a French application showing "HNE" for "EST". CLDR handles this by only supplying short names where a locale commonly uses them. Everywhere else, timeZoneName: "short" falls back to the localized GMT format, which MDN shows with the example values "PST" and "GMT-8" (MDN: Intl.DateTimeFormat() constructor).

We checked this on Node v20.19.2 with ICU 76.1. For America/Los_Angeles in January, short returned "PST" for en-US, "GMT-8" for en-GB, de-DE, ja-JP, and en-IN, and "UTC−8" for fr-FR. A German user does get a familiar short name for their own zone: Europe/Berlin in de-DE returned "MEZ", while en-US returned "GMT+1" for the same zone. Exact output depends on the engine's CLDR version, so treat these as observations from one runtime, not fixed strings.

In practice, abbreviations such as PST exist only in locales that commonly use them, and formatters fall back to GMT or UTC offsets elsewhere, so never hard-code abbreviations in translatable strings or assert them in tests. Two practical consequences follow. First, do not put abbreviations into translatable strings or ask translators to invent them; the formatter already knows which locales use them. Second, abbreviations are ambiguous even in English. The Android reference for java.util.TimeZone warns that three-letter IDs such as "CST" can mean both U.S. Central Standard Time and China Standard Time. Never parse an abbreviation back into a zone, and never use one as a stored value.

Canonicalize zone IDs before matching

The opening example fails at this step. Canonicalize zone IDs in the same runtime before matching a detected zone to a picker entry, because engines and tz versions disagree on names such as Europe/Kiev versus Europe/Kyiv and Asia/Calcutta versus Asia/Kolkata.

The IANA database renames zones. Europe/Kiev became Europe/Kyiv. Older names remain as links, but which spelling a runtime treats as canonical depends on the engine and its data version. The TC39 canonical time zone proposal, at Stage 3, documents this: it cites Europe/Kiev to Europe/Kyiv as its motivating rename, and shows Chrome, Safari, and Node resolving Asia/Kolkata to Asia/Calcutta while Firefox returns Asia/Kolkata.

On the Node v20.19.2 runtime above, Intl.supportedValuesOf("timeZone") returned 417 IDs, including Europe/Kiev and Asia/Calcutta but not Europe/Kyiv, Asia/Kolkata, or even UTC. A list built from that call and a server-side list built from a newer tz release will disagree on spelling.

Expensify hit this in production. In Expensify/App #30468, a tester in Ukraine reported that automatic detection showed "Kiev", but searching the manual picker for "Kiev" found nothing because the list used "Kyiv". Nothing crashed, but the user could not confirm their own zone.

The fix is to compare zones by identity, not by spelling:

function canonicalZone(id: string): string | null {
  try {
    return new Intl.DateTimeFormat("en", { timeZone: id }).resolvedOptions().timeZone;
  } catch {
    return null; // unknown to this runtime
  }
}

function sameZone(a: string, b: string): boolean {
  const ca = canonicalZone(a);
  const cb = canonicalZone(b);
  return ca !== null && ca === cb;
}

Run both the detected ID and every list entry through the same runtime before comparing. If the list comes from your server, keep a small alias map for renames you know about (Kiev and Kyiv, Calcutta and Kolkata, Saigon and Ho Chi Minh) and store the ID the user actually chose. Do not rewrite stored IDs on every client; another client on older data may not recognize the new spelling.

The same rule applies to search. Index each picker row under its canonical ID, its known aliases, and its localized labels, so "Kiev", "Kyiv", and "Київ" all reach the same row.

Build a picker people can search

Localized names make each row readable. Search lets people find their row among 400.

The Nielsen Norman Group's article on time-zone selectors recommends locating the user's zone for them where possible, organizing the dropdown alphabetically, and letting users search by city and country. Its examples are English, so apply the same advice per locale:

  1. Start from your supported zone list, not every link in the database. A Stack Overflow question on populating an IANA list with Noda Time describes the usual filter: keep zones that are valid for real places now and drop historical and generic entries.
  2. For each zone, build a localized generic name, a localized city, a localized country, and the current offset in the display locale.
  3. Sort by offset and then by localized name, or group by region, but keep the order stable while the list is open.
  4. Index every alias and localized label for search, using the locale's collation rules for matching.
  5. Preselect the detected zone after canonicalization, and show its localized generic name in the summary line, never the raw ID.

When two zones share a generic name, such as several cities in "Central European Time", add the localized city so users can tell rows apart. ICU's location fallback ("Los Angeles Time") is useful here because it already includes the city in the user's language.

Handle failure and fallback

Some lookups will return nothing. A brand-new zone may not be in an older device's data, a locale may lack a generic name, or the platform may return nil.

Fall back in this order: generic name, location format with the localized city, localized GMT offset, and only then the raw IANA ID. Log the zone and locale whenever you reach the raw-ID fallback, because it usually means stale device data or a missing locale bundle rather than a translation bug.

If your server renders zone names for emails or exported reports, use the recipient's locale and the server's ICU data, and test that both sides agree for the zones you support. A reminder email that says "Pacific Time" while the app says "Nordamerikanische Westküstenzeit" for the same user is a sign that one side ignored the user's locale.

Do not let a fallback change stored data. Labels are display output. The stored value is always the IANA ID the user selected.

Verify time zone names in every launch locale

Automate a small matrix rather than eyeballing one language:

  1. For each launch locale, render the picker labels for a fixed set of zones, including America/Los_Angeles, Europe/Berlin, Asia/Kolkata, Europe/Kyiv, Australia/Lord_Howe, and UTC. Assert that no label equals the raw ID unless you intentionally hit the last fallback.
  2. Render a recurring event and a single appointment for the same zone in January and July. The recurring label must stay identical across both dates; the appointment label may change.
  3. Assert that tests do not hard-code "PST" outside en-US. Expect an offset string for locales such as en-GB, de-DE, and ja-JP, but compare against the formatter's own output rather than a literal, because CLDR versions differ.
  4. Feed the detector both Europe/Kiev and Europe/Kyiv, and Asia/Calcutta and Asia/Kolkata. Each pair must preselect the same picker row.
  5. Search the picker for the localized city name in each launch locale and confirm it returns the expected row.

Common mistakes

  • Showing America/New_York in a settings summary because the label lookup returned nil and nobody handled it.
  • Translating a hand-built English list with fixed offsets, so half the labels are wrong after the next daylight-saving change.
  • Using specific names for recurring events, which makes weekly labels wrong for part of the year.
  • Comparing detected and listed zone IDs as plain strings across runtimes with different tz data.
  • Storing or parsing abbreviations, which are ambiguous and mostly English-only.
  • Formatting zone names with the device locale when the app has its own language setting. Pass the app's effective locale to every formatter.

What to do next

Open your time zone picker in German and Japanese today. If any row shows an IANA ID, an English zone name, or "PST", replace that label source with the platform's localized time zone names, then add the Kiev and Kyiv detection test before your next release. If you also format dates and times around those zones, the companion guide on localizing app dates, times, and numbers covers storing instants and converting them for display.