def extract_datetime_from_xml_element(element)
      date = extract_date_from_xml_element(element)
      hour = element.xpath('time/hour').text.to_i
      minute = element.xpath('time/minute').text.to_i
      offset = Time.now.strftime('%:z')
      Time.new(date.year, date.month, date.day, hour, minute, 0, offset)
    end
def extract_datetime_from_xml_element(element)
      date = extract_date_from_xml_element(element)
      hour = element.xpath('time/hour').text.to_i
      minute = element.xpath('time/minute').text.to_i
      offset = Time.now.strftime('%:z')
      Time.new(date.year, date.month, date.day, hour, minute, 0, offset)
    end
Extracts the date and time from the given XML element.

 @param [Nokogiri::XML::Element] element The XML element.
 @return [DateTime]