mod_muc_mam: Use higher precision timestamps
authorKim Alvefur <zash@zash.se>
Sat, 21 Jan 2023 17:24:45 +0100
changeset 12865 57e86d537ffe
parent 12864 38b3cd292ee5
child 12868 9f9633364044
mod_muc_mam: Use higher precision timestamps See also 781772c8b6d9
plugins/mod_muc_mam.lua
--- a/plugins/mod_muc_mam.lua	Sat Jan 21 17:18:16 2023 +0100
+++ b/plugins/mod_muc_mam.lua	Sat Jan 21 17:24:45 2023 +0100
@@ -29,7 +29,7 @@
 
 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);