Skip to content

Commit 6f2d59a

Browse files
authored
Merge pull request #570 from bmwiedemann/sde
created.rid: use SOURCE_DATE_EPOCH
2 parents 51539d3 + 524a8ff commit 6f2d59a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/rdoc/rdoc.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ def store= store
232232

233233
def update_output_dir(op_dir, time, last = {})
234234
return if @options.dry_run or not @options.update_output_dir
235+
unless ENV['SOURCE_DATE_EPOCH'].nil?
236+
time = Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime
237+
end
235238

236239
File.open output_flag_file(op_dir), "w" do |f|
237240
f.puts time.rfc2822

0 commit comments

Comments
 (0)