Fix date parsing in Jruby