check timezone is valid before setting it