Fixed Time and DateTime converters in to_java methods.