X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fpostgresql.c;h=8b6094923c448b3a1060a7f1752bd8f4e7f4bca2;hb=cc893903f8453dc96a797b319bdd4e294052de6f;hp=c92f6ee148a149a4c67aafd39ba862a8155784c6;hpb=e2cb258c7b6ce456f4119fd1454c85b479fa3e2d;p=collectd.git diff --git a/src/postgresql.c b/src/postgresql.c index c92f6ee1..8b609492 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -833,8 +833,7 @@ static int c_psql_write (const data_set_t *ds, const value_list_t *vl, assert (db->database != NULL); assert (db->writers != NULL); - /* TODO: Should this be rfc3339nano_local()? */ - 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; }