Fixed NoneType errors when calling tzname