Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/magic/omake_gen_magic.ml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ let omake_magic (buf : out_channel)
in
String.escaped (code ^ digest) in
let version = read_version version_txt in
let tm = Unix.(localtime (time ())) in
let tm =
try
Unix.(localtime (float_of_string (Sys.getenv "SOURCE_DATE_EPOCH")))
with
Not_found -> Unix.(localtime (Unix.time ())) in
Printf.fprintf buf {|
let default_save_interval = %F
let input_magic inx = let s = Bytes.make %d ' ' in really_input inx s 0 %d; Bytes.to_string s
Expand Down