Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
184.108.40.206 regression in Date#to_time for BC dates resulting in Time off by 1 year #5195
CRuby 2.3, CRuby 2.5, and JRuby 9.1 all return correct results:
JRuby 9.2 has the Time value wrong:
While not shown here, this also affects
Also note that both JRuby versions have a different timezone offset compared to MRI, but I'm not sure if that is a bug or just the result of using different timezone settings between Java and C.
I thought this may be related to #5191, but looking at the fix for that, I think it may be a different issue. However, I did not check the master branch to see if this has already been fixed.