I just upgraded to Ubuntu 22.04 and found that the UTC entry of the World Clock is no longer there. Searching for UTC, GMT or similar keywords does not help:
I searched the Internet, and found very old bug reports (here and here) that seem to indicate that the feature was requested by other users in the past, and so it is unlikely that it was intentionally removed.
Is there any way to restore this functionality without installing a plugin?
gnome-clocksv. 41.0, installed throughapt, and it certainly has an UTC entry ("Coordinated Universal Time"). Did you install it throughsnapmaybe? – Jos Oct 17 '22 at 16:00apt dist-upgrade: my version ofgnome-clocks(read through the UI) is also 41.0,dpkg -s "gnome-clocks"reports "installed", whilesnap listdoes not have an entry forgnome-clocks. It does have two entries for gnome, though... not sure what is going on. – matpen Oct 17 '22 at 20:12tzdataon your system? Doapt policy tzdata. – Jos Oct 18 '22 at 07:332022c-0ubuntu0.22.04.0for both "Installed" and "Candidate". Tryingapt-get install tzdataalso confirms that it is the latest version. – matpen Oct 18 '22 at 09:08gnome-clocksrepository and took a look around. It seems that the location database is taken fromGWeather. I think the locations are taken from/usr/lib/x86_64-linux-gnu/libgweather/Locations.bin. Do you have such a file, and doesgrepreveal that the word UTC is in there? – Jos Oct 18 '22 at 11:12gir1.2-gweather-3.0installed on your system? Perhaps evengir1.2-gweather-4.0? – Jos Oct 18 '22 at 11:17gir1.2-gweather-3.0is installed,gir1.2-gweather-4.0was not; I then installed the latter, but it seems to make no difference.grep UTC /usr/lib/x86_64-linux-gnu/libgweather/Locations.binsaysbinary file matches. – matpen Oct 18 '22 at 12:12python3 -c "from gi.repository import GWeather; print(GWeather.Location.get_world().get_timezones()[0].get_identifier())"prints "UTC", so the timezone is defintely there. However, it has no code, so it cannot be serialized. And in fact, adding it "manually" via gsetting does not work. @Jos would you share the result ofgsettings get org.gnome.shell.world-clocks locationswhile UTC is enabled? – matpen Oct 19 '22 at 09:06[<(uint32 2, <('Coordinated Universal Time (UTC)', '@UTC', false, @a(dd) [], @a(dd) [])>)>]. – Jos Oct 19 '22 at 10:45