Local Time Annotator

Append your local time after unambiguous absolute times on any page (e.g. "14:42 UTC" -> " (10:42 AM EDT)"), non-destructively.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
Zhi Li
Instalări zilnice
0
Total instalări
2
Rating-uri
0 0 0
Versiune
0.1.0
Creat
29-05-2026
Actualizat
29-05-2026
Size
16,5 KB
Licență
MIT
Se aplică pe
Toate site-urile

Appends your local time after any unambiguous absolute time on a web page — non-destructively, inline, on any site.

14:42 UTC            ->  14:42 UTC (10:42 AM EDT)
19:00Z               ->  19:00Z (3:00 PM EDT)
May 29, 08:45 UTC    ->  May 29, 08:45 UTC (4:45 AM EDT)

The original text is never changed — a small, dimmed (…) is added right after it. No configuration: your timezone is detected automatically.

What it annotates

  • <time datetime="…"> elements (most reliable).
  • In-text time + a zero-ambiguity marker: Z / UTC / GMT (optionally with a numeric offset like UTC+8, GMT+5:30) or a bare numeric offset (±HH:MM / ±HHMM). Examples: 14:42 UTC, 19:00Z, 2:42 PM GMT, 09:30 UTC+8, 15:00 -05:00.
  • Split timestamps assembled across inline nodes — e.g. Atlassian Statuspage's May 29, 08:45 UTC, where the time and UTC live in separate elements.

How the conversion works

The source offset is parsed, the absolute instant is computed, and that instant is formatted in your local zone via Intl.DateTimeFormat. Daylight saving is resolved per-instant by the browser — never hand-computed — so spring/fall transitions are correct. If a time is already in your local zone, nothing is added.

Scope

  • ✅ All sites (*://*/*), static and dynamically loaded content (a scoped MutationObserver catches late-rendered times).
  • ✅ Automatic local timezone; English-style output (10:42 AM EDT).
  • ⚠️ Named abbreviations (EDT, CST, …) are not matched — CST alone is ambiguous (China / US-Central / Cuba).
  • ⚠️ Relative times (2 hours ago) and bare ISO strings embedded in prose are skipped.
  • ⚠️ <input> / <textarea> / <code> / <pre> / contenteditable are left alone.

Performance & safety

A cheap pre-test gates the page scan, formatters are cached, and DOM writes are isolated from the observer, so re-matchable output (like GMT+8) never re-annotates itself and there is no CPU spin.

Feedback

Open an issue. Full docs and test cases: GitHub README; changelog: CHANGELOG.


Other scripts by the same author