Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Time Zone Ruler

ProNew

Scrub a UTC day across local clocks and see which teammates share working hours.

Installation

pnpm dlx shadcn@latest add @viewport/timezone-ruler

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
date*string

UTC calendar date, in YYYY-MM-DD format.

—
zones*Zone[]

City labels, IANA time zones and local working-hour ranges (start inclusive, end exclusive).

—
initialHournumber

Selected UTC hour from 0 to 23.

12

Accessibility

  • The time slider supports arrow keys. Local dates, times and availability are provided as text.