Skip to content

Add Spain's autonomous regions

Add Spain's autonomous regions to the Locations.xml file and organize all the existing cities into those regions.

This fixes gnome-clocks#330 for me. I wasn't able to complete root cause the issue in gnome-clocks. But I believe the problem has to do with the serialization/deserialization of GWeatherLocations. The call to gweather_location_next_child in gweather_location_format_two_serialize will grab the nearest place with a location tag instead of a city tag and find the timezone for that. Since all the cities in Spain were grouped into just the country this will filter up to getting the timezone Europe/Madrid.

Adding the state tag with a tz-hint means that when it goes to find the timzezone for a location it will grab the timezone for the state which in this case will correctly resolve to Atlantic/Canary.

Merge request reports