merged plib
[ppastats.git] / src / lp_json.c
index c3345fd..0643a1b 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "lp_json.h"
 #include "lp_ws.h"
+#include <ptime.h>
 
 static time_t json_to_time(json_object *json)
 {
@@ -51,7 +52,7 @@ static json_object *time_to_json(time_t t)
 {
        char *str;
 
-       str = time_to_str(t);
+       str = time_to_str(&t);
 
        if (str)
                return json_object_new_string(str);