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()