X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fpostgresql.c;h=8b6094923c448b3a1060a7f1752bd8f4e7f4bca2;hb=f66916deea905254061bb07245e007471faf2ecf;hp=084eae453393a3bb86c0766966d2e45b5a514e5f;hpb=4a40badfaaa7f3b07e1d9654527ab9780c898819;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; }