Function for clearing and setting the tz