public static boolean getZoneConversionLegacy(Map<String, String> metadata, Configuration conf) {
    assert conf != null : "Configuration must not be null";
    if (metadata != null) {
      if (metadata.containsKey(DataWritableWriteSupport.WRITER_ZONE_CONVERSION_LEGACY)) {
        return Boolean.parseBoolean(metadata.get(DataWritableWriteSupport.WRITER_ZONE_CONVERSION_LEGACY));
      }
      // There are no explicit meta about the legacy conversion
      if (metadata.containsKey(DataWritableWriteSupport.WRITER_TIMEZONE)) {
        // There is meta about the timezone thus we can infer that when the file was written, the new APIs were used.
        return false;
      }
    }
    // There is no (relevant) metadata in the file, use the configuration
    return HiveConf.getBoolVar(conf, ConfVars.HIVE_PARQUET_TIMESTAMP_LEGACY_CONVERSION_ENABLED);
  }
Returns whether legacy zone conversion should be used for transforming timestamps based on file metadata and
configuration.

@see ConfVars#HIVE_PARQUET_TIMESTAMP_LEGACY_CONVERSION_ENABLED
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/read/DataWritableReadSupport.java