Software /
code /
prosody
Diff
plugins/mod_muc_mam.lua @ 12861:57e86d537ffe
mod_muc_mam: Use higher precision timestamps
See also 781772c8b6d9
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 21 Jan 2023 17:24:45 +0100 |
parent | 12859:cd738fb8c754 |
child | 12977:74b9e05af71e |
line wrap: on
line diff
--- 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);