I use jbuilder to output my data.
However, the date in JS will look like this 2016-09-01T02:39:08.495Z
How could I make Rails output any datetime-type field with this format 2016-09-01 02:39
, discard the timezone information in the JSON output.
It seems there's no elegant way to make this option be default.
That is I need to manually put the conversion into any field I want to convert for all jbuilder templates.