diff --git a/src/link/Coff.zig b/src/link/Coff.zig index 8102c84f6f8d..a7b16e9bd586 100644 --- a/src/link/Coff.zig +++ b/src/link/Coff.zig @@ -2289,7 +2289,7 @@ fn writeHeader(self: *Coff) !void { flags.DLL = 1; } - const timestamp = std.time.timestamp(); + const timestamp = if (self.repro) 0 else std.time.timestamp(); const size_of_optional_header = @as(u16, @intCast(self.getOptionalHeaderSize() + self.getDataDirectoryHeadersSize())); var coff_header = coff.CoffHeader{ .machine = coff.MachineType.fromTargetCpuArch(target.cpu.arch),