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

This commit is contained in:
louiz’
2016-08-22 00:39:11 +02:00
parent 6776b827d2
commit 593b326827
+1 -1
View File
@@ -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;