Timezone Picker

Timezone Picker is a copy-paste React component that stops meeting scheduled in the wrong zone before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/timezone-picker
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 4 extra npm packages
  • A11y guidance in docs

StopsMeeting scheduled in the wrong zone

Was this component page useful?

How do I install Timezone Picker?

pnpm dlx shadcn@latest add @bollard/timezone-picker

The files land in your project. They're yours to edit.

How do I use Timezone Picker in React?

timezone-picker-usage.tsx
import { TimezonePicker } from "@/components/ui/timezone-picker"

<TimezonePicker label="Meeting time zone" defaultValue="Europe/London" deviceTimeZone="Asia/Kolkata" />

What input mistakes does Timezone Picker catch?

  • Ambiguous abbreviations, with all their meanings
  • A clock change within dstWarningDays
  • A pick that differs from the device's zone, with use-device option
  • Local time and UTC offset for each result

What props does Timezone Picker accept?

TimezonePicker props
PropTypeDefault
label

Visible label.

string"Time zone"
value

Selected IANA zone, e.g. "Asia/Kolkata".

string—
defaultValue

Starting IANA zone when uncontrolled.

string"UTC"
onValueChange

Called with the chosen IANA zone.

(timeZone: string) => void—
deviceTimeZone

Override the detected device zone (tests, demos).

string—
dstWarningDays

Warn about a clock change this many days ahead.

number30
locale

Locale for times and names.

string—
placeholder

Placeholder of the search input.

string—
ambiguousText

`{abbr}` and `{count}` are filled in.

string—
noResultsText

Shown when nothing matches.

string—
dstText

`{direction}` (forward/back), `{amount}`, `{date}` and `{offset}` are filled in.

string—
mismatchText

`{city}` and `{gap}` are filled in.

string—
useDeviceLabel

Label of the use-device-zone button.

string—
messages

Override any text (see `TIMEZONE_PICKER_MESSAGES`).

Partial<TimezonePickerMessages>—

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is Timezone Picker accessible?

  • Visible <label>; input is a combobox with aria-expanded, aria-controls and aria-activedescendant
  • Arrow keys move, Enter picks, Escape clears
  • Results are a listbox of options with aria-selected; status is role=status
  • Animations respect reduced motion

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

  • Search covers popular zones and aliases; obscure zones may need the IANA name
  • Offsets come from the runtime's tz database

What expensive mistakes does Timezone Picker stop?

Meeting scheduled in the wrong zone

Also known as

timezone · time zone · ist · utc offset · tz select · iana · calendar · settings

Field type

What dependencies does Timezone Picker require?

Timezone Picker facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameTimezone Picker
Registry identifier@bollard/timezone-picker
Install commandnpx shadcn@latest add @bollard/timezone-picker
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencies@date-fns/tz, @floating-ui/react, lucide-react, motion
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about Timezone Picker

How does Timezone Picker handle date and time accuracy?

Timezone Picker catches meeting scheduled in the wrong zone. Validates calendar constraints: Ambiguous abbreviations, with all their meanings, A clock change within dstWarningDays, A pick that differs from the device's zone, with use-device option, Local time and UTC offset for each result. Limitation: match timezone-picker with server timezone.

How do I install timezone-picker with shadcn?

Run `npx shadcn@latest add @bollard/timezone-picker`. Sources added: registry/default/timezone-picker/timezone-data.ts, registry/default/timezone-picker/timezone-picker.tsx. Package requirements: @date-fns/tz, @floating-ui/react, lucide-react, motion.

What props customize Timezone Picker?

Timezone Picker accepts `label`, `value`, `defaultValue`, `onValueChange`, `deviceTimeZone`. Configures timezone, time zone, ist behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of timezone-picker?

Search covers popular zones and aliases; obscure zones may need the IANA name. Offsets come from the runtime's tz database Server requirement: backend verification for timezone-picker.

How does Timezone Picker meet accessibility guidelines?

Visible <label>; input is a combobox with aria-expanded, aria-controls and aria-activedescendant. Arrow keys move, Enter picks, Escape clears. Results are a listbox of options with aria-selected; status is role=status. Animations respect reduced motion. Minimizes errors: ist ambiguous timezone, timezone select search.

Which components pair with Timezone Picker?