X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpostgresql.c;h=3a388a5a3e449ba16e4fbf9594754b393fa27239;hb=1c5e82a7eefdbcce608951fa5a00c5c5a43a41e6;hp=891cf0ddb943fe1e307bf1dc25fe21b59f6bb3a9;hpb=79963d13c1884d1d92667cc502ad20758b084a12;p=collectd.git diff --git a/src/postgresql.c b/src/postgresql.c index 891cf0dd..3a388a5a 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -790,7 +790,7 @@ static int c_psql_write(const data_set_t *ds, const value_list_t *vl, assert(db->database != NULL); assert(db->writers != NULL); - if (rfc3339nano(time_str, sizeof(time_str), vl->time) != 0) { + if (rfc3339nano_local(time_str, sizeof(time_str), vl->time) != 0) { log_err("c_psql_write: Failed to convert time to RFC 3339 format"); return -1; } @@ -1265,5 +1265,3 @@ void module_register(void) { plugin_register_complex_config("postgresql", c_psql_config); plugin_register_shutdown("postgresql", c_psql_shutdown); } /* module_register */ - -/* vim: set sw=4 ts=4 tw=78 noexpandtab : */