odpsreader/src/main/java/com/alibaba/datax/plugin/reader/odpsreader/ReaderProxy.java [53:69]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private Calendar initCalendar(Configuration config) {
        // 理论上不会有其他选择，有配置化可以随时应急
        String calendarType = config.getString("calendarType", "iso8601");
        Boolean lenient = config.getBool("calendarLenient", true);

        // 默认jvm时区
        TimeZone timeZone = TimeZone.getDefault();
        String timeZoneStr = config.getString("calendarTimeZone");
        if (StringUtils.isNotBlank(timeZoneStr)) {
            // 如果用户明确指定使用用户指定的
            timeZone = TimeZone.getTimeZone(timeZoneStr);
        }

        Calendar calendarForDate = new Calendar.Builder().setCalendarType(calendarType).setLenient(lenient)
                .setTimeZone(timeZone).build();
        return calendarForDate;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



odpswriter/src/main/java/com/alibaba/datax/plugin/writer/odpswriter/OdpsWriterProxy.java [100:116]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private Calendar initCalendar(Configuration config) {
        // 理论上不会有其他选择，有配置化可以随时应急
        String calendarType = config.getString("calendarType", "iso8601");
        Boolean lenient = config.getBool("calendarLenient", true);

        // 默认jvm时区
        TimeZone timeZone = TimeZone.getDefault();
        String timeZoneStr = config.getString("calendarTimeZone");
        if (StringUtils.isNotBlank(timeZoneStr)) {
            // 如果用户明确指定使用用户指定的
            timeZone = TimeZone.getTimeZone(timeZoneStr);
        }

        Calendar calendarForDate = new Calendar.Builder().setCalendarType(calendarType).setLenient(lenient)
                .setTimeZone(timeZone).build();
        return calendarForDate;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



