updated logics of checking timezone.