diff --git a/src/cntlr_map.c b/src/cntlr_map.c index dd9e56a4ad8c359b202710da8786d8f6e3419110..07c26f88368fc567d874ebf2523f46afb72a83df 100644 --- a/src/cntlr_map.c +++ b/src/cntlr_map.c @@ -3144,7 +3144,7 @@ static void cntlr_radio_remove_old_scanres(struct controller *c) list_for_each_entry_safe(el, tmp, &r->radio_el->scanlist, list) { struct timespec ts; - ts = timestamp_to_timespec(el->tsp, true); + ts = timestamp_to_timespec(el->tsp, false); if (timestamp_expired(&ts, SCANRES_MAX_AGE * 1000)) { cntlr_radio_clean_scanlist_el(el); r->radio_el->num_scanresult--; diff --git a/src/utils/utils.c b/src/utils/utils.c index efbfca31d132f6fdf83f183e5c5369e41a70064b..202506b60a8e87ad6570dd36924586bcf838832e 100644 --- a/src/utils/utils.c +++ b/src/utils/utils.c @@ -266,6 +266,7 @@ static long int timestamp_get_off_sec(const char *tsp) return toff; } +/* Returns time alligned to UTC+0 */ time_t timestamp_to_time(const char *tsp) { struct tm tm_time;