1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 14:39:03 +00:00

Use stdnse.format_timestamp in more places to avoid formatting issues. See #1255, #1303

This commit is contained in:
dmiller
2018-08-16 21:26:48 +00:00
parent 834e37d475
commit 6c4e02e89d
8 changed files with 13 additions and 13 deletions

View File

@@ -523,7 +523,7 @@ OptionToString = {
if ( HWTYPE_ETHER == opt.hwtype ) then
local mac = stdnse.tohex(opt.mac):upper()
mac = mac:gsub("..", "%1:"):sub(1, -2)
local tm = os.date("%Y-%m-%d %H:%M:%S", opt.time)
local tm = stdnse.format_timestamp(opt.time)
return "Client identifier", ("MAC: %s; Time: %s"):format(mac, tm)
end
end,