I am implementing a Facebook application and using AJAX/JSON.
However the JSON structures that are returned have this format 2010-05
The way I added my own custom format to the json I was returning was to add a monkey patch to the ActiveSupport TimeWithZone class.
Add a file in the config/initializers folder with the following contents:
class ActiveSupport::TimeWithZone
def as_json(options = {})
strftime('%Y-%m-%d %H:%M:%S')
end
end