Skip to content

Commit 668c429

Browse files
committed
Mark Gemspec-reproducible change fixing #784225, too
I think the UTC date change will fix the Multi-Arch not-same file issue, too. Signed-off-by: Antonio Terceiro <terceiro@debian.org> Signed-off-by: Christian Hofstaedtler <zeha@debian.org> Gbp-Pq: Name Mark-Gemspec-reproducible-change-fixing-784225-too.patch
1 parent 85b489c commit 668c429

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rubygems/specification.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,9 @@ def date=(date)
17091709
raise(Gem::InvalidSpecificationException,
17101710
"invalid date format in specification: #{date.inspect}")
17111711
end
1712-
when Time, DateLike then
1712+
when Time then
1713+
Time.utc(date.utc.year, date.utc.month, date.utc.day)
1714+
when DateLike then
17131715
Time.utc(date.year, date.month, date.day)
17141716
else
17151717
TODAY

0 commit comments

Comments
 (0)