#include <string.h>
#include <time.h>
-#include "lp_json.h"
-#include "lp_ws.h"
+#include <lp_json.h>
+#include <lp_ws.h>
#include <ptime.h>
static time_t json_to_time(json_object *json)
if (!str)
return -1;
-
memset(&tm, 0, sizeof(struct tm));
tm.tm_isdst = -1;
ret = strptime(str, "%FT%T", &tm);
return -1;
}
-static json_object *time_to_json(time_t t)
+json_object *time_to_json(time_t t)
{
char *str;
json_object *j;