I have a datetime field in rails and it stores in the right format when I save an object from rails. But when I convert that to the JSON format, it messes the date format:
Format stored in the DB: 2011-04-27 09:18:00 -0400
but when I do JSON of that object it changes the date format to 2011-04-27T09:18:00-04:00
How can I keep the date format consistent?
I'm using render :json => @eventsList
to render the object to :json