0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 16:52:44 +01:00

modules/m_event: Use smalldate() for pretty_oneline().

This commit is contained in:
Jason Volk 2019-04-25 07:30:28 -07:00
parent 8fda41c2ef
commit e8efe326d6

View file

@ -233,8 +233,9 @@ ircd::m::pretty_oneline(std::ostream &s,
else
s << "* ";
thread_local char sdbuf[48];
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
s << "* ";