mirror of
https://github.com/nmap/nmap.git
synced 2025-12-11 02:09:03 +00:00
Fix weird double variable declaration.
It seemed to run fine even with this.
This commit is contained in:
@@ -434,7 +434,7 @@ end
|
|||||||
-- This function should be used for all dates emitted as part of NSE structured
|
-- This function should be used for all dates emitted as part of NSE structured
|
||||||
-- output.
|
-- output.
|
||||||
function format_timestamp(t, offset)
|
function format_timestamp(t, offset)
|
||||||
local tz_string tz_string = format_tz(offset)
|
local tz_string = format_tz(offset)
|
||||||
offset = offset or 0
|
offset = offset or 0
|
||||||
return os.date("!%Y-%m-%dT%H:%M:%S", t + offset) .. tz_string
|
return os.date("!%Y-%m-%dT%H:%M:%S", t + offset) .. tz_string
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user