This is a MediaWiki gadget that displays the current time in Fiji (UTC+12 with support for daylight saving time) in a 12-hour format with AM/PM. The time updates automatically every second.
Suyash Dwivedi
User:Suyash.dwivedi
- Automatic Time Calculation: The gadget uses the
Pacific/Fijitimezone, automatically adjusting for Fiji’s daylight saving time. - Live Clock: The clock updates every second to show the current time in Fiji.
- 12-Hour Format: The time is displayed in a 12-hour format with AM/PM for better readability.
- MediaWiki Integration: Adds the clock to a MediaWiki page or user interface element, allowing you to refresh the page with a simple click.
- Install the Gadget: Copy the JavaScript code from FijiClock.js and add it to your MediaWiki's gadget or a user script.
- Customize the Portlet: By default, the gadget adds the live clock to the 'p-personal' portlet, but this can be customized by changing the
portletId. - Refresh Functionality: Clicking the clock will purge the page cache, ensuring the most recent time is displayed.
If you do not have admin access, you can still install the Fiji Clock as a user script in your own MediaWiki account:
-
Navigate to Your User JavaScript Page:
- Go to your
common.jspage, located at:https://[your-wiki-domain]/wiki/User:[YourUsername]/common.js
- Go to your
-
Add the Fiji Clock Script: Copy the JavaScript code from FijiClock.js and paste it into your
common.jsfile. -
Save the Page: After saving the script, the Fiji clock will appear in your personal tools section when logged in.
This project is licensed under the CC BY-SA 4.0 license.