From c01e5498baa393c50abd6cdd92399ef339ff53cf Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Tue, 1 Sep 2026 11:47:42 +0200 Subject: [PATCH] Use shared numeric player timestamps --- libs/libunitscan.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/libunitscan.lua b/libs/libunitscan.lua index ac71e7a..17fb951 100644 --- a/libs/libunitscan.lua +++ b/libs/libunitscan.lua @@ -228,8 +228,9 @@ local function RememberPlayer(name) units.players[name] = units.players[name] or {} units.players[name].class = class or units.players[name].class units.players[name].guid = guid or units.players[name].guid - units.players[name].lastseen = date("%a %d-%b-%Y") - units.players[name].lastseen_ts = time() + local now = time() + units.players[name].lastseen = now + units.players[name].lastseen_ts = now end local function PrunePassivePlayers()