User:Ahecht/Scripts/UTCLiveClock

This gadget adds a clock in the personal toolbar that shows the current time in UTC, and also provides a link to recursively purge the current page.

Ahecht/Scripts/UTCLiveClock
AuthorAhecht
Status
Release
UpdatedJuly 2, 2026
    (45 days ago)
SourceUser:Ahecht/Scripts/UTCLiveClock.js

This gadget adds a clock in the personal toolbar that shows the current time in UTC, and also provides a link to recursively purge the current page.

Based on: https://www.mediawiki.org/wiki/MediaWiki:Gadget-UTCLiveClock.js (Revision: July 2020), but modified to force a recursive link update.

Installation

Add the following line to Special:MyPage/common.js or meta:Special:MyPage/global.js to install:

mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/UTCLiveClock.js&action=raw&ctype=text/javascript' ); // Linkback: [[User:Ahecht/Scripts/UTCLiveClock.js]]

Note: If you have the "Add a clock to the personal toolbar..." gadget turned on in Special:Preferences#mw-prefsection-gadgets, you should disable it to avoid having two clocks shown.

To have the time displayed in a timezone other than UTC, add the following to your Special:MyPage/common.js or meta:Special:MyPage/global.js instead:

window.LiveClockTimeZone = 'America/Los_Angeles';

Replace 'America/Los_Angeles with your local time zone. See List of tz database time zones for valid options (use the TZ database name).

See also

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.