X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpostgresql.c;h=8b6094923c448b3a1060a7f1752bd8f4e7f4bca2;hb=0a8741b9061f8df4a78a448c021612db06e17425;hp=084eae453393a3bb86c0766966d2e45b5a514e5f;hpb=f91dc17b98157dfd785759cf71e009a0e9c1a520;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; }