I creating a custom json object with dates in it. Unfortunately when I want use the date in jQuery to turn into a Date object, the object turns to be invalid. This is the case for Date Strings like:
2011-12-14 00:59:59 +01:00
If I render it with the built in object.to_json the time gets rendered like this:
2011-12-14T00:59:59+01:00
This way I can turn this string in to a query date object.
So my question is how to render a date in rails so that it becomes the second format.
Thanks Markus