X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpostgresql.c;h=8b6094923c448b3a1060a7f1752bd8f4e7f4bca2;hb=50ad45a6a6c68119823d56c1ccec74135ba744f9;hp=084eae453393a3bb86c0766966d2e45b5a514e5f;hpb=5236399c4c5483b1a9c21233e34b2b4357800d58;p=collectd.git diff --git a/src/postgresql.c b/src/postgresql.c index 084eae45..8b609492 100644 --- a/src/postgresql.c +++ b/src/postgresql.c @@ -833,7 +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); - 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; }