So I think we are looking at (12.x branch) the following method:
My thought is to add in something like:
if ("NoDataTimeZone".equals()) {
return new NoDataTimeZone();
}
... so use a magic timezone value of "NoDataTimeZone" ... and that will give us a new NoDataTimeZone() implementation;
and in this way we don't impact anyone else / change the existing logic.
So that method implementation would end up like:
String tz = config.getDataTimeZone();
// add check for magic tz value first
if ("NoDataTimeZone".equals()) {
return new NoDataTimeZone();
}
// continue the existing logic
if (tz == null) {
if (isMySql(getPlatform())) {
return new MySqlDataTimeZone();
}
return new NoDataTimeZone();
}
if (getPlatform().base() == Platform.ORACLE) {
return new OracleDataTimeZone(tz);
} else {
return new SimpleDataTimeZone(tz);
}