A clean, self-contained timezone converter. No dependencies, no server, no install — just open and use.
Live: stuforfun.github.io/time-converter
Enter a date, time, and origin city — instantly see the equivalent local time in any destination city around the world. Add multiple destinations at once.
- 1,055 cities across every IANA timezone (1,039 unique city names; 16 appear in multiple countries)
- DST-aware — handles daylight saving transitions correctly via browser's built-in IANA database
- Half & quarter-hour offsets — India (UTC+5:30), Nepal (UTC+5:45), Iran (UTC+3:30), and all other non-whole-hour zones
- Fuzzy city search — scored ranking so the best match always comes first; accents and diacritics normalised (type "Medellin" to find "Medellín")
- 44 city aliases — historical and colloquial names: Bombay → Mumbai, Peking → Beijing, Saigon → Ho Chi Minh City, NYC, HK, KL, BKK, and more
- Multiple destinations — add as many target cities as you need; first card is permanent, additional cards are removable
- 12h / 24h toggle per card, defaulting to 24h
- Coherent color system — origin card in blue, destination cards in burgundy red
- Persistent state — localStorage auto-saves your last session; reopening the app restores your cities, date, time, and format settings
- Mobile-friendly — stacked single-column layout on small screens, side-by-side grid on desktop
- Accessible — full ARIA attributes, keyboard navigation in dropdowns, screen reader announcements on result updates
- Origin — type your reference city and select it from the dropdown
- Date & Time — pick a date and enter a time, or click set now to use the current moment
- Destination — type the city you want to convert to and select it
- Read the result — date, local time, and UTC offset appear instantly
- Add more — click + Add destination for additional cities
| Detail | Value |
|---|---|
| Architecture | Single self-contained HTML file |
| Dependencies | No npm · Google Fonts loaded from CDN at runtime |
| Fonts | Google Fonts (Playfair Display + DM Mono) |
| Cities | 1,055 entries · 1,039 unique names · 44 aliases |
| Algorithm | Intl.DateTimeFormat + iterative wallToUTC for DST correctness |
| Storage | localStorage key tc-v2 |
| Browser support | Any modern browser (Chrome, Firefox, Safari, Edge) |
No build step. Just open the file:
open index.html # macOS
start index.html # Windows
xdg-open index.html # LinuxOr serve with any static server:
npx serve .
python3 -m http.server 8080- Edit
index.html - Commit and push to
main - GitHub Pages deploys automatically within ~60 seconds
MIT — do whatever you want with it.