@Override
  public void afterTest(QTestUtil qt) throws Exception {
    if (enabled) {
      TimeZone.setDefault(originalTimeZone);
      enabled = false;
    }
  }
QTest custom timezone handler

Enables a custom timezone for the test.

Example:
--! qt:timezone:Asia/Singapore
itests/util/src/main/java/org/apache/hadoop/hive/ql/qoption/QTestTimezoneHandler.java