with_css_classes: true option overwrites other html classes. Concatenate day month and year classes rather than overwriting.
MRI reimplemented Date in C so it doesn't hit this division anymore while JRuby still uses the old stdlib implementation of Date so it will always hit this. With this change the actionview date_helper_test.rb tests should pass on JRuby.