{"action":"opened","issue":{"url":"https://api.github.com/repos/umts/aggressive-epsilon/issues/3","repository_url":"https://api.github.com/repos/umts/aggressive-epsilon","labels_url":"https://api.github.com/repos/umts/aggressive-epsilon/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/umts/aggressive-epsilon/issues/3/comments","events_url":"https://api.github.com/repos/umts/aggressive-epsilon/issues/3/events","html_url":"https://github.com/umts/aggressive-epsilon/issues/3","id":134357723,"number":3,"title":"#to_json doesn't use humanized attributes / ISO 8601 format","user":{"login":"dfaulken","id":3988134,"avatar_url":"https://avatars.githubusercontent.com/u/3988134?v=3","gravatar_id":"","url":"https://api.github.com/users/dfaulken","html_url":"https://github.com/dfaulken","followers_url":"https://api.github.com/users/dfaulken/followers","following_url":"https://api.github.com/users/dfaulken/following{/other_user}","gists_url":"https://api.github.com/users/dfaulken/gists{/gist_id}","starred_url":"https://api.github.com/users/dfaulken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfaulken/subscriptions","organizations_url":"https://api.github.com/users/dfaulken/orgs","repos_url":"https://api.github.com/users/dfaulken/repos","events_url":"https://api.github.com/users/dfaulken/events{/privacy}","received_events_url":"https://api.github.com/users/dfaulken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/umts/aggressive-epsilon/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/umts/aggressive-epsilon/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/umts/aggressive-epsilon/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-17T18:18:08Z","updated_at":"2016-02-17T18:18:08Z","closed_at":null,"body":"Since we've established that reservation datetime columns will have external names involving time ([source](https://github.com/umts/aggressive-epsilon/blob/cfa5c045a2a5ed05d997cd63f54b66e3c152bef3/config/locales/en.yml#L5-L6)), we have to jump through some hoops to get our GET endpoints to return this format ([example](https://github.com/umts/aggressive-epsilon/blob/35550bef0146c62561b3b28d4b13f1f8882be641/app/controllers/reservations_controller.rb#L25-L26)).\r\n\r\nIt'd be nice if we could find a way to use the helpers for rendering JSON with only certain attributes, etc., but have it use the humanized name from the locales file also.\r\n\r\nIt may become impossible to incorporate ISO 8601. The best solution may be to write a model method that accepts the same arguments."}}