protected void enableNonTzAwareMode() throws ReplicatorException {
  logger.info("Resetting MySQL session time zone back to global value");
  String sql="set session time_zone=@@global.time_zone";
  try {
    conn.execute(sql);
  }
 catch (  SQLException e) {
    throw new ReplicatorException("Unable to reset MySQL session time_zone: sql=" + sql + " message="+ e.getLocalizedMessage());
  }
  TimeZone hostTz=runtime.getHostTimeZone();
  logger.info("Resetting time zones used for date-time to enable non-time zone-aware operation: new tz=" + hostTz.getDisplayName());
  dateTimeFormatter.setTimeZone(hostTz);
  dateFormatter.setTimeZone(hostTz);
  timeFormatter.setTimeZone(hostTz);
  nonTzAwareMode=true;
}

protected void enableNonTzAwareMode ( ) throws ReplicatorException { logger . info ( "Resetting MySQL session time zone back to global value" ) ; String sql = "set session time_zone=@@global.time_zone" ; try { conn . execute ( sql ) ; } catch ( SQLException e ) { throw new ReplicatorException ( "Unable to reset MySQL session time_zone: sql=" + sql + " message=" + e . getLocalizedMessage ( ) ) ; } TimeZone hostTz = runtime . getHostTimeZone ( ) ; logger . info ( "Resetting time zones used for date-time to enable non-time zone-aware operation: new tz=" + hostTz . getDisplayName ( ) ) ; dateTimeFormatter . setTimeZone ( hostTz ) ; dateFormatter . setTimeZone ( hostTz ) ; timeFormatter . setTimeZone ( hostTz ) ; nonTzAwareMode = true ; }
initiate non - time zone - ware operation , which imitates operation of old prior to the time zone fix .
