From 32a406bc9c4dbff14aa3374ed2c0c3cc9d05f69c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 4 Nov 2014 13:14:41 +0000 Subject: [PATCH] Fix time output in history. --- src/controller.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controller.c b/src/controller.c index 2fb23877e..57653efd5 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); -- 2.39.5