Skip to content

dateMenu: Make sure we always display a clock name

Florian Müllner requested to merge fmuellner/gnome-shell:ghost-clock into master

We currently use the city name for all location except named timezones. However locations only have a city name if they are of level CITY or DETACHED, or if they are of level WEATHER_STATION with a parent of level CITY.

So when libgweather commit d7682676ac9 moved weather station locations from cities to countries, it broke their names in the world clocks section.

To fix this, stop making assumptions about when we can use the city name and simply try it first for all locations and fall back to the plain name if its not available.

Fixes #1150 (closed)

Merge request reports