summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/database/database.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/database.cpp b/src/database/database.cpp
index acf57d1..fce0f45 100644
--- a/src/database/database.cpp
+++ b/src/database/database.cpp
@@ -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;