1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 16:39:03 +00:00

Fix (again) the Windows date representation problem.

This commit is contained in:
dmiller
2020-10-10 13:37:03 +00:00
parent e333addec4
commit b9bb2ec387
3 changed files with 19 additions and 17 deletions

View File

@@ -825,7 +825,7 @@ function convertADTimeStamp(timestamp)
local result = 0
-- Windows cannot represent this time, so we pre-calculated it:
-- seconds since 1601/1/1 adjusted for local offset
local base_time = -11644473600 + datetime.system_time_at_epoch
local base_time = -11644473600 - datetime.utc_offset()
timestamp = tonumber(timestamp)