I just make a patch to my problem of date with write_mongodb.

I update write_mongodb.c

diff write_mongodb.c write_mongodb_orig.c

93,95d92
<   time_t seconds;
<   seconds = time (NULL);
<
97,98c94
<   /*bson_append_date (ret, "time", (bson_date_t) CDTIME_T_TO_MS
(vl->time));*/
<   bson_append_time_t (ret, "time",seconds);
---
>   bson_append_date (ret, "time", (bson_date_t) CDTIME_T_TO_MS (vl->time));
_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to