summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mythinstall/installsettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/mythinstall/installsettings.cpp')
-rwxr-xr-xabs/core-testing/mythinstall/installsettings.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/abs/core-testing/mythinstall/installsettings.cpp b/abs/core-testing/mythinstall/installsettings.cpp
index 10341db..7315464 100755
--- a/abs/core-testing/mythinstall/installsettings.cpp
+++ b/abs/core-testing/mythinstall/installsettings.cpp
@@ -41,7 +41,7 @@
#include <qsqlquery.h>
#include "mv_common.h"
-int run_from_installer = FALSE;
+int timezone_unknown = FALSE;
extern HostParms hostparm;
extern DDCinfo ddcinfo;
@@ -3403,8 +3403,16 @@ void pre_writesettings ()
hostparm.ThisHostName = "You_Fool";
}
// piece togther the timezone
+ QString tz;
QString tregion;
QString tsubregion;
+
+ tz=gContext->GetSetting("HostTimeZone");
+
+ cout << "tz extracted from database: " << tz << endl;
+ if ( tz.isEmpty() || (tz == "Unknown"))
+ timezone_unknown = TRUE;
+
tregion=gContext->GetSetting("HostTimeZoneRegion");
tsubregion=gContext->GetSetting("HostTimeZoneRegion_"+tregion);
if ( tsubregion.isEmpty() )
@@ -3412,7 +3420,7 @@ void pre_writesettings ()
else
hostparm.ThisTimeZone = tregion + "/" + tsubregion;
- cout << hostparm.ThisTimeZone << endl;
+ cout << "hostparm.ThisTimeZone " << hostparm.ThisTimeZone << endl;
// save some settings back to the datebase
gContext->SaveSetting("HostMyhostname" , hostparm.ThisHostName );
gContext->SaveSetting("HostMysqlserver", hostparm.ThisDBhost );