public static String formatDate(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(date);
    }
use default time foramt

@param date {@link Date}
@return String
inlong-common/src/main/java/org/apache/inlong/common/util/StringUtil.java