Moved the call to getTimezone in order to call it only when it is needed