@@ -18,7 +18,7 @@ import QtQuick 2.4
1818import QtQuick.Layouts 1.1
1919import Ubuntu.Components 1.3
2020import Wizard 0.1
21−import Ubuntu.SystemSettings.TimeDate 1.0
21+import Ubuntu.SystemSettings.TimeDate 1.1
2222import Utils 0.1 as Utils
2323import ".." as LocalComponents
2424
@@ -30,6 +30,7 @@ LocalComponents.Page {
3030 forwardButtonSourceComponent: forwardButton
3131
3232 property string selectedTimeZone: ""
33+ property string selectedTimeZoneName: ""
3334 readonly property bool showingMap: wideMode && width >= units.gu(110)
3435
3536 // for testing
@@ -67,6 +68,7 @@ LocalComponents.Page {
6768
6869 function resetViews() {
6970 selectedTimeZone = ""
71+ selectedTimeZoneName = ""
7072 tzList.currentIndex = -1
7173 highlightImage.source = ""
7274 pinImage.x = 0;
@@ -144,6 +146,7 @@ LocalComponents.Page {
144146 highlightTimezone(offset);
145147 ListView.view.currentIndex = index;
146148 selectedTimeZone = timeZone;
149+ selectedTimeZoneName = city;
147150 //print("Clicked at city with coords:", longitude, latitude);
148151 //print("Clicked on TZ:", timeZone);
149152 //print("Highlight at (x,y):", longitudeToX(longitude, map.width), latitudeToY(latitude, map.height));
@@ -267,7 +270,7 @@ LocalComponents.Page {
267270 text: i18n.tr("Next")
268271 enabled: selectedTimeZone != ""
269272 onClicked: {
270− timeDatePanel.timeZone = selectedTimeZone;
273+ timeDatePanel.setTimeZone(selectedTimeZone, selectedTimeZoneName);
271274 pageStack.next();
272275 }
273276 }