diff options
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |