GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 9a356755 authored by Bastien Nocera's avatar Bastien Nocera

world: Fix named timezones appearing with no name

Named timezones don't have city names, as they're not cities. Fall back
to the timezone name in that case.

parent ba06ecb8
......@@ -51,7 +51,12 @@ public class Item : Object, ContentItem {
public string city_name {
owned get {
return location.get_city_name ();
var city_name = location.get_city_name ();
/* Named Timezones don't have city names */
if (city_name == null) {
city_name = location.get_name ();
return city_name;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment