Score:1

Multiple timezone clocks in topbar on Ubuntu 20.04

la flag

I want to have several time zone clocks (cities with local time) in my top bar on my Ubuntu 20.04. There is a similar question and answer here but it does not work on my system as some users have reported that shell extension does not work for Ubuntu 20.04. I could not figure out a way to do this. Is there a solution or workaround for this?

EDIT

Following @Terrance and other answers here, I installed gnome-clocks and then panel world clock (lite). I was able to get multiple clocks on my top bar with corresponding time zones.

enter image description here

But it does not show me the option to change the time zone to city name. Why is this happening? Any fixes for this? I will very much prefer city names to time zones.

enter image description here

I am not sure if it has anything to do with panel world clock version but mine is 11.

enter image description here

Terrance avatar
id flag
This one is a possibility as it will show under the calendar: https://askubuntu.com/a/1071064/231142 as well as the answer below it works to put clocks on the bar. You might get an error with Panel World Clock (Lite) but you just log out and back in after installing it and it works fine.
V Kahn avatar
la flag
Is there a way to get time with names of cities? Because after you have 3 or 4 clocks, it starts becoming confusing which time is where by just looking at top bar.
Terrance avatar
id flag
Yes. When you install https://extensions.gnome.org/extension/946/panel-world-clock-lite/ there will be a configure option that will launch the configuration and allow you to select the show the city names you have chosen.
V Kahn avatar
la flag
I was able to install gnome-clocks and then Panel World Clock (Lite) and it shows multiple clocks on top bar. However, when I attempted to configure the extension so that it shows city names next to local times instead of EST, CET etc, it shows options to change only panel location, number of clocks and hide local time. There is no option to have city names next to times. What did I miss?
Terrance avatar
id flag
Added an answer for you.
Score:1
id flag

Following the two answers that are here How to get world clocks to show on the task bar in Ubuntu 18.04 will give you the ability to have the clocks on the bar and to set them with the city names instead.

After you get the gnome-clocks installed sudo apt install gnome-clocks then you visit https://extensions.gnome.org/extension/946/panel-world-clock-lite/ and enable the plugin for the world clock lite. You will probably need to log out and back in after enabling it if it gives you an error when you enable it.

After you have logged back in, revisit https://extensions.gnome.org/extension/946/panel-world-clock-lite/ and click on the configure button:

enter image description here

The Panel World Clock Lite configuration will launch. Enable location instead of time zone in panel:

enter image description here

Enjoy the city names instead of time zone name:

enter image description here

V Kahn avatar
la flag
Thanks, @Terrance. But I am not getting the option the change time zones to city names. I modified my question to add details and show the configuration options panel world clock (lite) is showing me. Any solutions and what might be causing this?
Terrance avatar
id flag
@VKahn That might have something to do with 20.04. I am running 22.04. I can try spinning up a 20.04 VM and see if I can get it working.
Terrance avatar
id flag
@VKahn Unfortunately, I cannot see any answer on how to enable the city names in the extension. I even downloaded an extension manually for 3.38, but it didn't want to enable that part for Ubuntu 20.04. Sorry I cannot be more help than that.
V Kahn avatar
la flag
You were great @Terrance. Thanks a lot of all you could share with me.
Terrance avatar
id flag
@VKahn I did notice with 20.04 that you can click on the time in the bar and it shows you the city that you chose. It does kind of suck that it doesn't let you show the city names for first glance though. Looks like for later releases of GNOME that they added the ability to show city names, but those versions will crash in 20.04 if installed.
V Kahn avatar
la flag
Today, I upgraded my system to Ubuntu 22.04.01 LTS and was able to get all the world clocks on my top bar with respective city names. Thanks again, @Terrance.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.