aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-12-23 10:46:00 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-12-23 10:46:00 +0100
commit589d489fb9076a129f9148c68d8b823cbfbb1644 (patch)
treebe765235bf46133eddd4b0ce9a135a86848ecee9
parentdb85680c669ed7df0b15f09342bfed21b658222e (diff)
downloadxban2-589d489fb9076a129f9148c68d8b823cbfbb1644.tar.gz
xban2-589d489fb9076a129f9148c68d8b823cbfbb1644.tar.bz2
xban2-589d489fb9076a129f9148c68d8b823cbfbb1644.zip
Fix expiry date
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index a2af725..5df959e 100644
--- a/init.lua
+++ b/init.lua
@@ -202,7 +202,7 @@ function xban.get_record(player)
local msg = rec.type or "ban"
msg = msg .. ": " .. rec.reason or "No reason given."
if rec.expires then
- msg = msg..(", Expires: %s"):format(os.date("%c", e.expires))
+ msg = msg..(", Expires: %s"):format(os.date("%Y-%m-%d %H:%M:%S", rec.expires))
end
if rec.source then
msg = msg..", Source: "..rec.source