From 27d63ff731ebeb2ada1fcc1d812c0fa637de35b3 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 21 Jan 2023 17:24:45 +0100 Subject: mod_muc_mam: Use higher precision timestamps See also 781772c8b6d9 --- plugins/mod_muc_mam.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3