lib/cloudfiles/container.rb in cloudfiles-1.4.0 vs lib/cloudfiles/container.rb in cloudfiles-1.4.1
- old
+ new
@@ -165,10 +165,10 @@
return {} if (response.code == "204")
raise InvalidResponseException, "Invalid response code #{response.code}" unless (response.code == "200")
doc = REXML::Document.new(response.body)
detailhash = {}
doc.elements.each("container/object") { |o|
- detailhash[o.elements["name"].text] = { :bytes => o.elements["bytes"].text, :hash => o.elements["hash"].text, :content_type => o.elements["content_type"].text, :last_modified => Time.parse(o.elements["last_modified"].text) }
+ detailhash[o.elements["name"].text] = { :bytes => o.elements["bytes"].text, :hash => o.elements["hash"].text, :content_type => o.elements["content_type"].text, :last_modified => DateTime.parse(o.elements["last_modified"].text) }
}
doc = nil
return detailhash
end
alias :list_objects_info :objects_detail