Add Timeservers.Configuration timerservers (if any) to the list of
timeservers for time correction query. Now the Order is
Timeserver.Config (via the user), service timeserver (via DHCP).
default gateway (system), global timeservers (via the user).
}
service_save(service);
+
+ __connman_timeserver_sync(service);
} else if (g_str_equal(name, "Domains.Configuration") == TRUE) {
DBusMessageIter entry;
GString *str;
struct connman_network *network;
char **timeservers;
char **service_ts;
+ char **service_ts_config;
const char *service_gw;
int index, i;
ts_list = NULL;
}
+ service_ts_config = connman_service_get_timeservers_config(service);
+
+ /* First add Service Timeservers.Configuration to the list */
+ for (i=0; service_ts_config != NULL && service_ts_config[i] != NULL; i++)
+ ts_list = g_slist_prepend(ts_list, g_strdup(service_ts_config[i]));
+
service_ts = connman_service_get_timeservers(service);
/* First add Service Timeservers via DHCP to the list */