Tune Intl calls at the kampung radio so schedules, prices and greetings read right in every zone. 15 levels, right in the browser.
A JavaScript Date holds a single instant: milliseconds since 1 January 1970 UTC. It knows no zone. A zone only comes in when the instant is written for someone to read, and Intl.DateTimeFormat takes it through the timeZone option. Indonesia has three zones: WIB, western Indonesia time (Asia/Jakarta, UTC+7), WITA, central (UTC+8), and WIT, eastern (UTC+9). One broadcast falls on three different wall clocks.
A zone's name is not part of the zone itself: it comes from the CLDR locale data the browser carries. Asia/Jakarta has the short name WIB in Indonesia's locales, but in many others it is only GMT+7. The timeZoneName option decides the form of the zone's name written with it: its abbreviation, its long name, or its offset from UTC.
Date methods such as getDay(), getHours() and getDate() always read the zone of the device running the code, while getUTCDay() and its friends read UTC. For any other zone only Intl knows. The date changes at local midnight, and midnight reaches the east first.
An offset from UTC is right for one moment only. A zone such as Europe/Paris is a history of offsets: when summer time starts and ends, and every rule that ever held in that city. Indonesia keeps no summer time, so WIB, WITA and WIT are always UTC+7, +8 and +9. Most countries in Europe and North America change their clocks twice a year.
The same code can run in many places: on a server, on its author's laptop, or on every reader's phone. Intl's default zone is the zone where the code runs. A card made once and then shared needs its reader's zone written in. A page that each reader runs for themselves already carries its reader's zone.
new Intl.RelativeTimeFormat(locale, options).format(value, unit) writes a time difference. Its unit is second, minute, hour, day, week, month, quarter or year. It does not work the difference out: you give it the number, sign and all.