Fix for private #to_date defined on Time in rbx-18mode and jruby-18mode