How to set multiple timezones in Gnome Classic?

For some strange reason, additional timezones cannot be added to the clock using the date-time indicator in Gnome Classic (Ubuntu 12.04). I used Unity before I switched to Gnome Classic, and it was possible to add more timezones. Even in Gnome Classic I can see the other timezones in the menu of the date-time indicator which I added when I was still using Unity. When I go to System Settings > Date and Time, there is no option for adding other timezones. How can I set additional timezones in Gnome Classic?


background

The unity-indicator as you may have gathered does not have the same capabilities as Unity. The developers have patched the gnome-libraries to give this integration. However - by design - they have left the Gnome-Shell & Gnome-Classic desktops as vanilla as possible. This is by expression wish by the gnome-developers.

Thus you will need a slightly more inventive solution - this answer will give you one such suggestion.

use the clock applet

enter image description here

Temporarily add the clock applet to the panel.

Find your location by clicking edit in the applet

Next look carefully at the locations:

enter image description here

The value you are interested in is timezone city

In this example:

America/Port_of_Spain Piarco
Europe/Rome Verona

Next fire up dconf-editor

dconf-tools Install dconf-tools

Look at the locations field as shown and add your new location(s) - each entry is in the format ,'timezone city' i.e. separate entries with commas

enter image description here

You then will automatically update your date-time indicator. You can finish off by deleting the clock applet.

enter image description here


If the "Choose locations" is missing from the Date and Time control but it does work, you should file a bug about it:

ubuntu-bug gnome-session-fallback

You can actually edit it manually through dconf-editor:

sudo apt-get install dconf-tools
dconf-editor

Select com > canonical > indicator > datetime

Look at the locations value.

['UTC UTC', 'Asia/Nicosia Nicosia']

Purely guessing, I think the first (e.g. Asia/Nicosia) is the time zone name and the second (e.g. Nicosia) is the name that appears in the indicator menu (tray icon).

You can find the list of time zones here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones