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
Negative nsec on Time initialisation #5438
I got this issue while running some specs that generate random past dates, which are failing due https://github.com/jruby/jruby/pull/5371/files
Ok to clarify...
The behavior described here is not new as far back as 1.7.27. The error is new, but correct behavior for negative nsec (assuming MRI would raise at the same place if passed negative nsec).
So the thing to fix is not the error added by #5371, but to figure out why we're returning a negative nsec in these cases.