code: def set_zone(time_zone):
      '''
      Set the local time zone. Use ``timezone.list_zones`` to list valid time_zone
      arguments
  
      :param str time_zone: The time zone to apply
  
      :return: True if successful, False if not
      :rtype: bool
  
      :raises: SaltInvocationError on Invalid Timezone
      :raises: CommandExecutionError on failure
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' timezone.set_zone America/Denver
      '''
      if time_zone not in list_zones():
          raise SaltInvocationError('Invalid Timezone: {0}'.format(time_zone))
  
      salt.utils.mac_utils.execute_return_success(
          'systemsetup -settimezone {0}'.format(time_zone))
  
      return time_zone in get_zone(f set_zone(time_zone):
      '''
      Set the local time zone. Use ``timezone.list_zones`` to list valid time_zone
      arguments
  
      :param str time_zone: The time zone to apply
  
      :return: True if successful, False if not
      :rtype: bool
  
      :raises: SaltInvocationError on Invalid Timezone
      :raises: CommandExecutionError on failure
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' timezone.set_zone America/Denver
      '''
      if time_zone not in list_zones():
          raise SaltInvocationError('Invalid Timezone: {0}'.format(time_zone))
  
      salt.utils.mac_utils.execute_return_success(
          'systemsetup -settimezone {0}'.format(time_zone))
  
      return time_zone in get_zone()
docs: Set the local time zone. Use ``timezone.list_zones`` to list valid time_zone
      arguments
  
      :param str time_zone: The time zone to apply
  
      :return: True if successful, False if not
      :rtype: bool
  
      :raises: SaltInvocationError on Invalid Timezone
      :raises: CommandExecutionError on failure
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' timezone.set_zone America/Denver