Skip to content

Commit 246c720

Browse files
committed
Improve manpage reproducibility
Always treat SOURCHE_DATE_EPOCH as a UTC timestamp, to prevent variability introduced by the environment's timezone setting.
1 parent c0efabb commit 246c720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rakelib/manpages.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ task :gen_manpages do
1515
ronn_args = '--manual="Puppet manual" --organization="Puppet, Inc." --roff'
1616

1717
unless ENV['SOURCE_DATE_EPOCH'].nil?
18-
source_date = Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).strftime('%Y-%m-%d')
18+
source_date = Time.at(ENV['SOURCE_DATE_EPOCH'].to_i, in: 'UTC').strftime('%Y-%m-%d')
1919
ronn_args += " --date=#{source_date}"
2020
end
2121

0 commit comments

Comments
 (0)