-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DateTime to_time does not preserve UTC-ness #4784
Comments
Psych 3.0.2 will ship with JRuby 9.2. |
still an issue when run on a UTC system (Travis CI) :
.. the problem seems to be Psych JRuby incompatibility, to be handled at the psych repository. here's a reproducer, under MRI 2.5.3 :
JRuby 9.2.5 (and current master - 9.2.6 target) :
|
I think Psych is innocent here. Run this on JRuby and MRI to see the difference:
JRuby gives true, MRI false...and this triggers the different formatting in Psych |
Keep/adjust value of isTzRelative where required. In Time: * op_plus, op_minus * clone * localtime, gmtime/utc * succ In DateTime: * to_time is always relative in MRI Fixes jruby#4784
I am excluding some Psych tests from 2.2.4 that have not been updated for Ruby 2.4 changes to DateTime#to_time. These tests are fixed on Psych master but we can't update them until there's a non-beta Psych release.
The text was updated successfully, but these errors were encountered: