lib/apricoteatsgorilla/apricoteatsgorilla.rb in rubiii-apricoteatsgorilla-0.5.6 vs lib/apricoteatsgorilla/apricoteatsgorilla.rb in rubiii-apricoteatsgorilla-0.5.7

- old
+ new

@@ -264,9 +264,11 @@ # Converts Hash values into valid XML values. def map_hash_value(value) if value.kind_of? DateTime value.strftime("%Y-%m-%dT%H:%M:%S") + elsif value.respond_to? :to_datetime + value.to_datetime.strftime("%Y-%m-%dT%H:%M:%S") elsif value.respond_to? :to_s value.to_s else nil end