Corrected tzname crash fix

Corrected the tzname crash fix by excepting the error thrown by tzname, because the previous fix avoided setting the timezone altogether with a poorly written boolean check.