World Clock Widget
Add a live world clock to your website. Pick up to twelve cities and the widget shows each one's current time, date and UTC offset, updating on its own and following daylight-saving changes automatically.
Live preview
Exactly what your visitors will seeUnder the widget on your page: Powered by A2Z Tools
Embed code
<iframe src="https://a2z.tools/embed/w/world-clock" title="World Clock by A2Z Tools" width="100%" height="420" style="border:0;width:100%" loading="lazy" allow="clipboard-write"></iframe>
A plain iframe. Works everywhere, including site builders that strip scripts. Adjust height if your content needs more room.
<div data-a2z-widget="world-clock" data-height="420"></div> <script async src="https://a2z.tools/embed.js"></script>
Adds a small script (what it does) that sizes the widget to fit its content, loads it lazily and keeps it isolated from your page's CSS.
Works with
How it works
The clock reads the visitor's device clock and converts it into each city's local time with the browser's built-in IANA time-zone database. Because the browser applies each zone's daylight-saving rules, the widget never needs manual updates when clocks change. Each row shows the city, its local weekday and date, the time and the current UTC offset, so a reader can see at a glance that Sydney is already on tomorrow while Los Angeles is still on yesterday. Offsets are measured, not looked up from a table: the widget formats the same instant in the zone and in UTC and subtracts, which is why half-hour and quarter-hour zones such as India (UTC+5:30) and Nepal (UTC+5:45) come out exactly. Zone names in the embed code are checked against the browser's own list; anything it does not recognise is dropped rather than guessed. The list refreshes every five seconds (every second when seconds are shown) and pauses while the page is hidden to save battery.
Method
- Local time = device UTC time converted with Intl.DateTimeFormat(timeZone = IANA zone)
- UTC offset (minutes) = wall-clock time in the zone read as if it were UTC - the actual UTC instant, truncated to the minute; shown as UTC+h or UTC+h:mm
- Zones are IANA names such as Asia/Kolkata, Europe/London or America/New_York; at most 12, unknown names dropped
- 12/24-hour default: 12-hour for en-US, en-IN, en-AU, en-CA, en-NZ, en-PH and en-PK locales, else 24-hour; v_format overrides
- Refresh: every 5 s, or every 1 s with v_seconds=1; paused while the frame is hidden
Worked examples
The six default cities at one instant
Inputs: Default zones; instant 2026-10-01 12:00 UTC
Result: New York 08:00 (UTC-4), London 13:00 (UTC+1), Dubai 16:00 (UTC+4), Kolkata 17:30 (UTC+5:30), Singapore 20:00 (UTC+8), Sydney 22:00 (UTC+10)
New York and London are on summer time (EDT and BST) in early October; the Gulf, India and Singapore observe no daylight saving, so their offsets never change.
Sydney changes offset on its own
Inputs: v_zones=Australia/Sydney; 2026-10-03 12:00 UTC and 2026-10-05 12:00 UTC
Result: UTC+10 on 3 October, UTC+11 on 5 October
New South Wales starts daylight saving on the first Sunday of October (4 October 2026). The browser's tz rules move the clock forward; the embed code is not touched.
A quarter-hour zone next to a half-hour zone
Inputs: v_zones=Asia/Kolkata,Asia/Kathmandu; 2026-10-01 12:00 UTC
Result: Kolkata 17:30 (UTC+5:30), Kathmandu 17:45 (UTC+5:45)
Nepal has been 15 minutes ahead of India since 1986; the measured offset shows the extra quarter hour exactly.
Limitations
- The time is only as right as the visitor's device clock; the widget never contacts a time server.
- A country that changes its clock rules at short notice is shown correctly only after the visitor's browser or operating system ships the updated tz release.
- Each row is labelled with the last part of the IANA name (Asia/Kolkata shows as Kolkata); custom city labels, flags and time-zone abbreviations such as IST or EST are not shown, because abbreviations are ambiguous.
- Invalid zone names are dropped without a message; if none is valid the six default cities appear.
Where publishers use it
- Remote teams and agencies showing office hours across countries on a contact page
- Travel and visa blogs showing the destination's local time
- Customer-support pages that show when each regional desk is awake
- Event and webinar pages with a global audience
Questions
How do I choose the cities?
In the builder, list IANA time-zone names separated by commas. The embed code carries them as v_zones=Asia/Kolkata,Europe/London. Up to twelve are shown.
Does it handle daylight saving time?
Yes. The browser's time-zone database applies each zone's daylight-saving rules, so the times change automatically on the right dates.
Is the time accurate?
It is as accurate as the visitor's device clock, which is normally synchronised with internet time. The widget makes no network requests.
Can it show seconds or 24-hour time?
Yes. Add v_seconds=1 for seconds and v_format=24 for 24-hour time; visitors can also switch between 12- and 24-hour.
Why does Phoenix stay put when Denver changes?
Most of Arizona does not observe daylight saving, so America/Phoenix is UTC-7 all year while America/Denver moves between UTC-7 and UTC-6. Choosing the right IANA zone, not just the right state or country, is what makes a world clock correct.
Sources
- Time Zone Database (tz / zoneinfo) - IANA . Zone names, UTC offsets and daylight-saving rules; the widget uses the copy built into the visitor's browser
- ECMAScript Internationalization API Specification (ECMA-402), Intl.DateTimeFormat - Ecma International TC39 . How browsers format an instant in a named IANA time zone
Cite or recommend this tool
If you reference this tool in an article, course or documentation, these formats are ready to copy. They are optional - nothing is added to your site unless you paste it.
A2Z Tools World Clock https://a2z.tools/embed/world-clock
<a href="https://a2z.tools/embed/world-clock">A2Z Tools World Clock</a>
[A2Z Tools World Clock](https://a2z.tools/embed/world-clock)
World Clock by A2Z Tools - https://a2z.tools/embed/world-clock
Related widgets
-
Convert a date and time between any two time zones, with daylight-saving gaps and overlaps explained.
-
A large live digital clock for any time zone, with seconds, date and a 12/24-hour switch.
-
A classic clock face with hour, minute and second hands for your zone or any city.
-
Shows Open now or Closed and when you open next, in your business's own time zone.
-
Live days, hours, minutes and seconds to a date you set, with an "event has started" message.
-
Exact age in years, months and days, totals in months, weeks and days, and the next birthday.