mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
modules/m_event: Use smalldate() for pretty_oneline().
This commit is contained in:
parent
8fda41c2ef
commit
e8efe326d6
1 changed files with 2 additions and 1 deletions
|
@ -233,8 +233,9 @@ ircd::m::pretty_oneline(std::ostream &s,
|
||||||
else
|
else
|
||||||
s << "* ";
|
s << "* ";
|
||||||
|
|
||||||
|
thread_local char sdbuf[48];
|
||||||
if(json::get<"origin_server_ts"_>(event) != json::undefined_number)
|
if(json::get<"origin_server_ts"_>(event) != json::undefined_number)
|
||||||
s << json::get<"origin_server_ts"_>(event) << " ";
|
s << smalldate(sdbuf, json::get<"origin_server_ts"_>(event) / 1000L) << " ";
|
||||||
else
|
else
|
||||||
s << "* ";
|
s << "* ";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue