cap server-time: add .000 for microsecs since our clock does not support microsecs

This commit is contained in:
William Pitcock 2016-02-28 00:40:46 -06:00
parent 193d4db30c
commit df06f4c920

View file

@ -50,7 +50,7 @@ cap_server_time_process(hook_data *data)
time_t ts = rb_current_time();
struct MsgBuf *msgbuf = data->arg1;
strftime(buf, sizeof buf, "%Y-%m-%dT%H:%M:%SZ", gmtime(&ts));
strftime(buf, sizeof buf, "%Y-%m-%dT%H:%M:%S.000Z", gmtime(&ts));
msgbuf_append_tag(msgbuf, "time", buf, CLICAP_SERVER_TIME);
}