Skip to content

[fix] DateTime (civil) Float sec rounding#5625

Merged
kares merged 1 commit intojruby:masterfrom
kares:fix-date-civil-float-sec
Feb 22, 2019
Merged

[fix] DateTime (civil) Float sec rounding#5625
kares merged 1 commit intojruby:masterfrom
kares:fix-date-civil-float-sec

Conversation

@kares
Copy link
Member

@kares kares commented Feb 22, 2019

noticed a lot of (new) DateTime failures on 2.6 branch from CSV tests
turns out they were all related to sec arg rounding when a Float is given.

this patch will handle such cases ~ as MRI, its not matching C logic but is quite close.

@kares kares added this to the JRuby 9.2.7.0 milestone Feb 22, 2019
@kares
Copy link
Member Author

kares commented Feb 22, 2019

there seems to be a problem with eql? which fails in some cases (when == passes), looking into that

@kares kares merged commit eaf746b into jruby:master Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant