update lib/date.rb from jruby