use cache for bpph
[ppastats.git] / src / lp_json.c
index 590d334..e217180 100644 (file)
@@ -64,7 +64,7 @@ static struct bpph *json_to_bpph(json_object *o)
        date_created = json_object_get_string
                (json_object_object_get(o, "date_created"));
        if (date_created)
-               strptime(date_created, "%FT%T%z", &bpph->date_created);
+               strptime(date_created, "%FT%T", &bpph->date_created);
 
        status = json_object_get_string(json_object_object_get(o, "status"));
        if (status)
@@ -111,7 +111,7 @@ static json_object *bpph_to_json(struct bpph *bpph)
        date = malloc(strlen("YY-MM-DDThh:mm:ss+xxx") + 1);
        strftime(date,
                 strlen("YY-MM-DDThh:mm:ss+xxx") + 1,
-                "%FT%T%z",
+                "%FT%T",
                 &bpph->date_created);
 
        json_object_object_add