Apple - How can I add a UTC world clock to my OSX dashboard?

There is already a UTC clock available.

Assuming you're on Yosemite:

  1. Go to your notification center
  2. Click Edit at the bottom
  3. Add the World Clock and click Done.
  4. Hover over the World Clock you just added, and click on the (i) icon.
  5. Enter UTC when it asks for City.
  6. That's it. You're done.

You can edit the source of the world clock widget to add UTC:

cd /Library/Widgets
sudo vi WorldClock.js

Since Mac OS El Capitan, the file is now found here:

cd /Library/Widgets/World Clock.wdgt/
sudo vi WorldClock.js

Then, in the Europe section, add the line:

{city:'UTC', offset:0, timezone:'UTC', id:"2647937"},

The "city" will become the display name of the clock widget; it can be whatever you like.

You may need to remove and recreate any existing clocks in your dashboard for UTC to show up in the list. Since Mac OS Mojave, you will need to kill the DashboardClient process to see the new option (it will restart on its own):

killall DashboardClient

I couldn't figure out these instructions for my High Sierra Machine machine so I installed this Status Clock from Pulsely Consulting: enter image description here

Tags:

Macos