Refactor

Move get timezone into function