diff options
author | louiz’ <louiz@louiz.org> | 2016-08-22 00:39:11 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-08-22 00:39:11 +0200 |
commit | 593b3268273cac2fa58257ee8e51ce1a6de30872 (patch) | |
tree | c2857c5b8f35d4e8228dde50d52d45e9ba27577d /src/database | |
parent | 6776b827d243ec0e018eac8233c5df402030640e (diff) | |
download | biboumi-593b3268273cac2fa58257ee8e51ce1a6de30872.tar.gz biboumi-593b3268273cac2fa58257ee8e51ce1a6de30872.tar.bz2 biboumi-593b3268273cac2fa58257ee8e51ce1a6de30872.tar.xz biboumi-593b3268273cac2fa58257ee8e51ce1a6de30872.zip |
When saving the logs, the date must be in seconds, not nanoseconds
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/database.cpp | 2 |
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; |