g_free(str);
+#if defined TIZEN_EXT
+ str = g_key_file_get_string(keyfile, "global", "Timeservers", NULL);
+
+ if (str && str[0] == ';') {
+ DBG("Set time_updates_config to MANUAL.");
+ time_updates_config = TIME_UPDATES_MANUAL;
+ }
+
+ g_free(str);
+#endif
+
g_key_file_free(keyfile);
}
__connman_timeserver_system_set(str);
+#if defined TIZEN_EXT
+ if (str) {
+ if (str[0][0] == '\0') {
+ DBG("Set time_updates_config to MANUAL.");
+ time_updates_config = TIMEZONE_UPDATES_MANUAL;
+ } else {
+ DBG("Set time_updates_config to AUTO.");
+ time_updates_config = TIMEZONE_UPDATES_AUTO;
+ }
+ } else {
+ DBG("Set time_updates_config to MANUAL.");
+ time_updates_config = TIMEZONE_UPDATES_MANUAL;
+ }
+#endif
+
if (str)
g_strfreev(str);
}
}
+#if defined TIZEN_EXT
+ if (__connman_clock_timeupdates() == TIME_UPDATES_MANUAL) {
+ DBG("Skip time update.");
+ return TRUE;
+ }
+#endif
+
decode_msg(nd, iov.iov_base, iov.iov_len, tv, &mrx_time);
return TRUE;
return;
}
#if defined TIZEN_EXT
- if (!simplified_log)
+ if (ts_current[0] == '\0') {
+ DBG("current time server is empty. ignore next time server..");
+ return;
+ }
+
+ if (!simplified_log)
#endif
DBG("Resolving timeserver %s", ts_current);
#if defined TIZEN_EXT