Patrick Williams | 93c203f | 2021-10-06 16:15:23 -0500 | [diff] [blame] | 1 | From: Christian Hofstaedtler <zeha@debian.org> |
| 2 | Date: Tue, 10 Oct 2017 15:07:11 -0300 |
| 3 | Subject: Mark Gemspec-reproducible change fixing #784225, too |
| 4 | |
| 5 | I think the UTC date change will fix the Multi-Arch not-same file issue, |
| 6 | too. |
| 7 | |
| 8 | Upstream-Status: Backport [debian] |
| 9 | |
| 10 | Signed-off-by: Antonio Terceiro <terceiro@debian.org> |
| 11 | Signed-off-by: Christian Hofstaedtler <zeha@debian.org> |
| 12 | --- |
| 13 | lib/rubygems/specification.rb | 4 +++- |
| 14 | 1 file changed, 3 insertions(+), 1 deletion(-) |
| 15 | |
| 16 | --- a/lib/rubygems/specification.rb |
| 17 | +++ b/lib/rubygems/specification.rb |
| 18 | @@ -1695,7 +1695,9 @@ |
| 19 | raise(Gem::InvalidSpecificationException, |
| 20 | "invalid date format in specification: #{date.inspect}") |
| 21 | end |
| 22 | - when Time, DateLike then |
| 23 | + when Time then |
| 24 | + Time.utc(date.utc.year, date.utc.month, date.utc.day) |
| 25 | + when DateLike then |
| 26 | Time.utc(date.year, date.month, date.day) |
| 27 | else |
| 28 | TODAY |