public static String formatCurrentTime(String formatter, Locale locale) {
        ZonedDateTime zoned = ZonedDateTime.now();
        // TODO: locale seems not working
        return DateTimeFormatter.ofPattern(formatter).withLocale(locale).format(zoned);
    }
Formatter for current time based on zone
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/utils/AgentUtils.java