From: Vsevolod Stakhov Date: Tue, 4 Nov 2014 13:14:41 +0000 (+0000) Subject: Fix time output in history. X-Git-Tag: 0.7.4~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32a406bc9c4dbff14aa3374ed2c0c3cc9d05f69c;p=thirdparty%2Frspamd.git Fix time output in history. --- diff --git a/src/controller.c b/src/controller.c index 2fb23877e3..57653efd54 100644 --- a/src/controller.c +++ b/src/controller.c @@ -674,6 +674,7 @@ rspamd_controller_handle_history (struct rspamd_http_connection_entry *conn_ent, /* Get only completed rows */ if (row->completed) { tm = localtime (&row->tv.tv_sec); + strftime (timebuf, sizeof (timebuf) - 1, "%Y-%m-%d %H:%M:%S", tm); obj = ucl_object_typed_new (UCL_OBJECT); ucl_object_insert_key (obj, ucl_object_fromstring ( timebuf), "time", 0, false);