lib/databasedotcom/client.rb in databasedotcom-1.2.4 vs lib/databasedotcom/client.rb in databasedotcom-1.2.5

- old
+ new

@@ -496,10 +496,10 @@ attrs.keys.each do |key| case clazz.field_type(key) when "multipicklist" coerced_attrs[key] = (attrs[key] || []).join(';') when "datetime" - coerced_attrs[key] = attrs[key] ? attrs[key].strftime("%Y-%m-%dT%H:%M:%S.%L%z") : nil + coerced_attrs[key] = attrs[key] ? attrs[key].strftime(RUBY_VERSION.match(/^1.8/) ? "%Y-%m-%dT%H:%M:%S.000%z" : "%Y-%m-%dT%H:%M:%S.%L%z") : nil else coerced_attrs[key] = attrs[key] end end coerced_attrs.to_json