# HG changeset patch # User Matthew Wild # Date 1680091288 -3600 # Node ID 534c055ec3780ef1f537e4d543f1066bbd81269b # Parent d943733c6d01090881094f7ebb4fa67b8c8cba2b util.session: Add 'since' property with timestamp of session creation diff -r d943733c6d01 -r 534c055ec378 util/session.lua --- a/util/session.lua Tue Mar 28 21:25:54 2023 +0200 +++ b/util/session.lua Wed Mar 29 13:01:28 2023 +0100 @@ -1,10 +1,12 @@ local initialize_filters = require "prosody.util.filters".initialize; +local time = require "util.time"; local logger = require "prosody.util.logger"; local function new_session(typ) local session = { type = typ .. "_unauthed"; base_type = typ; + since = time.now(); }; return session; end