added check_timezone as a function