aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-09-23 16:49:33 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-09-23 16:49:33 +0200
commit563e0a7bca093aae8ddc0e1af73083b406b809f1 (patch)
tree43a74ba03d8d1c4b27eaedac991d1508f34f964f
parentbbc0fb55c69a7234aff93e4155053c32c9c06342 (diff)
downloadxban2-563e0a7bca093aae8ddc0e1af73083b406b809f1.tar.gz
xban2-563e0a7bca093aae8ddc0e1af73083b406b809f1.tar.bz2
xban2-563e0a7bca093aae8ddc0e1af73083b406b809f1.zip
Fix wrong time listing in /xban_record, use the same format as gui
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 0f816d2..4e1a997 100644
--- a/init.lua
+++ b/init.lua
@@ -193,7 +193,7 @@ function xban.get_record(player)
if rec.source then
msg = msg..", Source: "..rec.source
end
- table.insert(record, ("[%s]: %s"):format(os.date("%c", e.time), msg))
+ table.insert(record, ("[%s]: %s"):format(os.date("%Y-%m-%d %H:%M:%S", rec.time), msg))
end
local last_pos
if e.last_pos then