private static TimeZone timezoneId(final DruidQuery query, final RexNode arg) {
    return arg.getType().getSqlTypeName() == SqlTypeName.TIMESTAMP_WITH_LOCAL_TIME_ZONE
        ? TimeZone.getTimeZone(
        query.getTopNode().getCluster().getPlanner().getContext().unwrap(CalciteConnectionConfig.class).timeZone()) :
        TimeZone.getTimeZone("UTC");
  }
utility function to extract timezone id from Druid query
@param query Druid Rel
@return time zone
ql/src/java/org/apache/hadoop/hive/ql/parse/DruidSqlOperatorConverter.java