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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Zhi Li
今日安裝
0
安裝總數
2
評價
0 0 0
版本
0.1.0
建立日期
2026-05-29
更新日期
2026-05-29
尺寸
16.5 KB
授權條款
MIT
腳本執行於
所有網站

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