@@ -18,7 +18,7 @@ import QtQuick 2.4
18import QtQuick.Layouts 1.1
18import QtQuick.Layouts 1.1
19import Ubuntu.Components 1.3
19import Ubuntu.Components 1.3
20import Wizard 0.1
20import Wizard 0.1
21−import Ubuntu.SystemSettings.TimeDate 1.0
21+import Ubuntu.SystemSettings.TimeDate 1.1
22import Utils 0.1 as Utils
22import Utils 0.1 as Utils
23import ".." as LocalComponents
23import ".." as LocalComponents
@@ -30,6 +30,7 @@ LocalComponents.Page {
30 forwardButtonSourceComponent: forwardButton
30 forwardButtonSourceComponent: forwardButton
32 property string selectedTimeZone: ""
32 property string selectedTimeZone: ""
33+ property string selectedTimeZoneName: ""
33 readonly property bool showingMap: wideMode && width >= units.gu(110)
34 readonly property bool showingMap: wideMode && width >= units.gu(110)
35 // for testing
36 // for testing
@@ -67,6 +68,7 @@ LocalComponents.Page {
68 function resetViews() {
69 function resetViews() {
69 selectedTimeZone = ""
70 selectedTimeZone = ""
71+ selectedTimeZoneName = ""
70 tzList.currentIndex = -1
72 tzList.currentIndex = -1
71 highlightImage.source = ""
73 highlightImage.source = ""
72 pinImage.x = 0;
74 pinImage.x = 0;
@@ -144,6 +146,7 @@ LocalComponents.Page {
144 highlightTimezone(offset);
146 highlightTimezone(offset);
145 ListView.view.currentIndex = index;
147 ListView.view.currentIndex = index;
146 selectedTimeZone = timeZone;
148 selectedTimeZone = timeZone;
149+ selectedTimeZoneName = city;
147 //print("Clicked at city with coords:", longitude, latitude);
150 //print("Clicked at city with coords:", longitude, latitude);
148 //print("Clicked on TZ:", timeZone);
151 //print("Clicked on TZ:", timeZone);
149 //print("Highlight at (x,y):", longitudeToX(longitude, map.width), latitudeToY(latitude, map.height));
152 //print("Highlight at (x,y):", longitudeToX(longitude, map.width), latitudeToY(latitude, map.height));
@@ -267,7 +270,7 @@ LocalComponents.Page {
267 text: i18n.tr("Next")
270 text: i18n.tr("Next")
268 enabled: selectedTimeZone != ""
271 enabled: selectedTimeZone != ""
269 onClicked: {
272 onClicked: {
270− timeDatePanel.timeZone = selectedTimeZone;
273+ timeDatePanel.setTimeZone(selectedTimeZone, selectedTimeZoneName);
271 pageStack.next();
274 pageStack.next();