Dev Tools
The rule that matters: never compute an offset by hand. Ask the platform's time-zone database for the offset on the exact date you need, and the skipped hour, the repeated hour, and the US/UK mismatch weeks all come out right.
JavaScript — Intl
const fmt = new Intl.DateTimeFormat("en-US", {
timeZone: "America/New_York",
hour: "numeric", minute: "2-digit"
});
fmt.format(new Date("2026-07-15T15:00:00Z")); // 11:00 AM (EDT)
// The same call in January returns 10:00 AM (EST).
// Never write: new Date(utc - 5 * 3600e3). That is wrong
// for eight months of the year. Python — zoneinfo
from datetime import datetime
from zoneinfo import ZoneInfo
dt = datetime(2026, 7, 15, 15, 0, tzinfo=ZoneInfo("UTC"))
print(dt.astimezone(ZoneInfo("America/New_York")))
# 2026-07-15 11:00:00-04:00 — the -04:00 comes from IANA,
# not from anything you typed. Things that break
- Storing a local time without a zone. "2:30 AM on 14 March 2027" in New York does not exist. Store UTC, display local.
- Cron jobs on clock-change weekends. A 2:30 AM job skips a day in spring and runs twice in autumn. Run time-sensitive jobs at 3:30 AM or later.
- Recurring meetings across March and October. A weekly call fixed in GMT lands an hour later in the East for the mismatch weeks. Anchor recurring calls in one zone and convert every week, or accept the shift and warn attendees.
- Assuming London is GMT. From late March to late October London is BST (UTC+1). GMT is the offset; London is the place.
Offsets, for reference
| Zone | Standard | Daylight |
|---|---|---|
| GMT / UTC | UTC+0 | UTC+0 (no DST) |
| Eastern (ET) | EST, UTC-5 | EDT, UTC-4 |
| Central (CT) | CST, UTC-6 | CDT, UTC-5 |
| Pacific (PT) | PST, UTC-8 | PDT, UTC-7 |
| India (IST) | UTC+5:30 | UTC+5:30 (no DST) |