timezone setup and error logging