livingsocial/databasedotcom — pull request #1 by HighgrooveDan (2012-05-17 19:23:15+00:00)
Title: Fixes error when trying to update records with DateTime's represented as Strings

Before implementing this patch, I would get an error like this:

/task/gems/databasedotcom/lib/databasedotcom/client.rb:501:in `block in coerced_json': undefined method `strftime' for "2012-03-12 20:26:54":String (NoMethodError)

I updated the Client.coerced_json method to handle a DateTime parameter passed in as a String, properly convert it into a DateTime object, then call strftime to properly format the Timestamp for the Salesforce API.

I wrote an additional spec to handle the situation as well, which passes.

Hope this helps.