@@ -471,7 +471,7 @@ Item {
471 property var menuModel: menuFactory.menuModel
471 property var menuModel: menuFactory.menuModel
472 property int menuIndex: -1
472 property int menuIndex: -1
473 property var extendedData: menuData && menuData.ext || undefined
473 property var extendedData: menuData && menuData.ext || undefined
474− readonly property var tz: getExtendedProperty(extendedData, "xCanonicalTimezone", "UTC")
474+ readonly property string tz: getExtendedProperty(extendedData, "xCanonicalTimezone", "UTC")
475 property var updateTimer: Timer {
475 property var updateTimer: Timer {
476 repeat: true
476 repeat: true
477 running: tzMenuItem.visible // only run when we're open
477 running: tzMenuItem.visible // only run when we're open
@@ -481,7 +481,6 @@ Item {
481 city: menuData && menuData.label || ""
481 city: menuData && menuData.label || ""
482 time: Utils.TimezoneFormatter.currentTimeInTimezone(tz)
482 time: Utils.TimezoneFormatter.currentTimeInTimezone(tz)
483 enabled: menuData && menuData.sensitive || false
483 enabled: menuData && menuData.sensitive || false
484− highlightWhenPressed: false
486 onMenuModelChanged: {
485 onMenuModelChanged: {
487 loadAttributes();
486 loadAttributes();
@@ -490,7 +489,18 @@ Item {
490 loadAttributes();
489 loadAttributes();
492 onTriggered: {
491 onTriggered: {
493− menuModel.activate(menuIndex);
492+ tzActionGroup.setLocation.activate(tz);
497+ busType: DBus.SessionBus
498+ busName: "com.canonical.indicator.datetime"
499+ objectPath: "/com/canonical/indicator/datetime"
501+ property variant setLocation: action("set-location")
503+ Component.onCompleted: tzActionGroup.start()
496 function loadAttributes() {
506 function loadAttributes() {