aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-01-21 17:24:45 +0100
committerKim Alvefur <zash@zash.se>2023-01-21 17:24:45 +0100
commit27d63ff731ebeb2ada1fcc1d812c0fa637de35b3 (patch)
tree958dd807edc0083322918f2389bbe34b0d3eb880
parentdbbde4a0f0f4d266d87aed950c17857510148fff (diff)
downloadprosody-27d63ff731ebeb2ada1fcc1d812c0fa637de35b3.tar.gz
prosody-27d63ff731ebeb2ada1fcc1d812c0fa637de35b3.zip
mod_muc_mam: Use higher precision timestamps
See also 781772c8b6d9
-rw-r--r--plugins/mod_muc_mam.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_muc_mam.lua b/plugins/mod_muc_mam.lua
index 1c34b8af..1655bc1d 100644
--- a/plugins/mod_muc_mam.lua
+++ b/plugins/mod_muc_mam.lua
@@ -29,7 +29,7 @@ local get_room_from_jid = mod_muc.get_room_from_jid;
local is_stanza = st.is_stanza;
local tostring = tostring;
-local time_now = os.time;
+local time_now = require "util.time".now;
local m_min = math.min;
local timestamp, datestamp = import("util.datetime", "datetime", "date");
local default_max_items, max_max_items = 20, module:get_option_number("max_archive_query_results", 50);