diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-04 13:14:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-04 13:14:41 +0000 |
commit | 32a406bc9c4dbff14aa3374ed2c0c3cc9d05f69c (patch) | |
tree | 1c86e378833478f4c80ed0b6826b9ac4e3864535 /src/controller.c | |
parent | b1cc82613d9929b2d377693b033c63c12cba91e1 (diff) | |
download | rspamd-32a406bc9c4dbff14aa3374ed2c0c3cc9d05f69c.tar.gz rspamd-32a406bc9c4dbff14aa3374ed2c0c3cc9d05f69c.zip |
Fix time output in history.
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); |