Merge remote-tracking branch 'origin/topic/johanna/default-canonifier-only-first-timestamp'

* origin/topic/johanna/default-canonifier-only-first-timestamp:
  Default canonifier change to only remove first timestamp in line
  Align SMB timestamp calculation between operating systems
This commit is contained in:
Johanna Amann 2025-06-24 14:00:39 +01:00
commit 72bd683c23
97 changed files with 740 additions and 714 deletions

View file

@ -11,7 +11,7 @@ double filetime2zeektime(uint64_t ts)
{
// Zeek can't support times back to the 1600's
// so we subtract a lot of seconds.
return (ts / 10000000.0L) - 11644473600.0L;
return (static_cast<double>(ts) / 10000000.0) - 11644473600.0;
}
double time_from_lanman(SMB_time* t, SMB_date* d, uint16_t tz)