From 53fbaca681009ca3abcec72bca326913776ec23e Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Tue, 11 Aug 2020 10:54:43 -0700 Subject: binding/afm-gps-binding: Don't call removed unix_to_iso8601() The function unix_to_iso8601() has been removed in gpsd (see https://gitlab.com/gpsd/gpsd/-/commit/9c5d6463938120651957145ec4fe0fb932356bfc) so instead use the timespec_to_iso8601() function. Bug-AGL: SPEC-3819 Signed-off-by: Alistair Francis Signed-off-by: Scott Murray Change-Id: I228c2baa287c7cdd5d571040e59aff14ff75068e --- binding/afm-gps-binding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/afm-gps-binding.c b/binding/afm-gps-binding.c index 75f4176..acf7491 100644 --- a/binding/afm-gps-binding.c +++ b/binding/afm-gps-binding.c @@ -115,7 +115,7 @@ static json_object *populate_json_data(json_object *jresp) if (data.set & TIME_SET) { char time[30]; - unix_to_iso8601(data.fix.time, (char *) &time, sizeof(time)); + timespec_to_iso8601(data.fix.time, (char *) &time, sizeof(time)); value = json_object_new_string(time); json_object_object_add(jresp, "timestamp", value); } -- cgit 1.2.3-korg