{"action":"opened","issue":{"url":"https://api.github.com/repos/fog/fog-json/issues/12","repository_url":"https://api.github.com/repos/fog/fog-json","labels_url":"https://api.github.com/repos/fog/fog-json/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/fog/fog-json/issues/12/comments","events_url":"https://api.github.com/repos/fog/fog-json/issues/12/events","html_url":"https://github.com/fog/fog-json/issues/12","id":310088749,"number":12,"title":"Sanitize ignore timezone","user":{"login":"Paxa","id":26019,"avatar_url":"https://avatars3.githubusercontent.com/u/26019?v=4","gravatar_id":"","url":"https://api.github.com/users/Paxa","html_url":"https://github.com/Paxa","followers_url":"https://api.github.com/users/Paxa/followers","following_url":"https://api.github.com/users/Paxa/following{/other_user}","gists_url":"https://api.github.com/users/Paxa/gists{/gist_id}","starred_url":"https://api.github.com/users/Paxa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Paxa/subscriptions","organizations_url":"https://api.github.com/users/Paxa/orgs","repos_url":"https://api.github.com/users/Paxa/repos","events_url":"https://api.github.com/users/Paxa/events{/privacy}","received_events_url":"https://api.github.com/users/Paxa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-30T15:05:01Z","updated_at":"2018-03-30T15:05:01Z","closed_at":null,"author_association":"NONE","body":"sanitize print all dates as UTC without converting:\r\n```ruby\r\nirb(main):011:0> p Time.now\r\n2018-03-30 22:53:19 +0800\r\n=> 2018-03-30 22:53:19 +0800\r\nirb(main):012:0> puts Fog::JSON.encode(Fog::JSON.sanitize(a: Time.now))\r\n{\"a\":\"2018-03-30T22:53:22Z\"}\r\n=> nil\r\nirb(main):013:0> puts JSON.generate(a: Time.now)\r\n{\"a\":\"2018-03-30 22:53:25 +0800\"}\r\n=> nil\r\n```\r\nmy time is 22:53 in GMT+8, but sanitize will print it as 22:53 in GMT+0\r\n\r\nCan be solved by using `data.iso8601` or `data.strftime(\"%Y-%m-%dT%H:%M:%S%:z\")`"}}
{"actor":{"display_login":"Paxa"}}