aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}