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.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

作者のサイトでサポートを受ける。または、このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Zhi Li
1日のインストール数
0
累計インストール数
2
評価
0 0 0
バージョン
0.1.0
作成日
2026/05/29
更新日
2026/05/29
大きさ
16.5KB
ライセンス
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