Commit 593b3268 authored by louiz’'s avatar louiz’

When saving the logs, the date must be in seconds, not nanoseconds

parent 6776b827
......@@ -129,7 +129,7 @@ void Database::store_muc_message(const std::string& owner, const Iid& iid,
line.owner = owner;
line.ircChanName = iid.get_local();
line.ircServerName = iid.get_server();
line.date = date.time_since_epoch().count();
line.date = date.time_since_epoch().count() / 1'000'000'000;
line.body = body;
line.nick = nick;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment