aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2020-08-11 10:54:43 -0700
committerScott Murray <scott.murray@konsulko.com>2021-03-01 18:28:08 -0500
commit53fbaca681009ca3abcec72bca326913776ec23e (patch)
tree1e87bdd99823192a440dbdc2d5c11c2cb6824490
parent342354ba35c3e1556ecd487be94c7951a4b8b2c3 (diff)
binding/afm-gps-binding: Don't call removed unix_to_iso8601()next
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 <alistair.francis@wdc.com> Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I228c2baa287c7cdd5d571040e59aff14ff75068e
-rw-r--r--binding/afm-gps-binding.c2
1 files changed, 1 insertions, 1 deletions
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);
}