{"action":"opened","issue":{"url":"https://api.github.com/repos/buildkite/feedback/issues/219","repository_url":"https://api.github.com/repos/buildkite/feedback","labels_url":"https://api.github.com/repos/buildkite/feedback/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/buildkite/feedback/issues/219/comments","events_url":"https://api.github.com/repos/buildkite/feedback/issues/219/events","html_url":"https://github.com/buildkite/feedback/issues/219","id":191510867,"number":219,"title":"API doesn't understand timezones :watch: :eyes:","user":{"login":"ineffyble","id":834880,"avatar_url":"https://avatars.githubusercontent.com/u/834880?v=3","gravatar_id":"","url":"https://api.github.com/users/ineffyble","html_url":"https://github.com/ineffyble","followers_url":"https://api.github.com/users/ineffyble/followers","following_url":"https://api.github.com/users/ineffyble/following{/other_user}","gists_url":"https://api.github.com/users/ineffyble/gists{/gist_id}","starred_url":"https://api.github.com/users/ineffyble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ineffyble/subscriptions","organizations_url":"https://api.github.com/users/ineffyble/orgs","repos_url":"https://api.github.com/users/ineffyble/repos","events_url":"https://api.github.com/users/ineffyble/events{/privacy}","received_events_url":"https://api.github.com/users/ineffyble/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-24T12:40:22Z","updated_at":"2016-11-24T12:40:22Z","closed_at":null,"body":"The API docs state that [datetimes should be given in ISO 8601 :eight: :six: :zero: :one:](https://buildkite.com/docs/rest-api/builds#get-a-build) format 📅 . The string generated by Ruby in ISO 8601 for right now is 🕚  `2016-11-24T23:23:41+11:00`, which includes the time in Melbourne, and the offset.\r\n\r\nWhen I query for [builds created in the last hour in that format](https://api.buildkite.com/v2/builds?created_from=2016-11-24T22%3A23%3A41%2B11%3A00), I get no results, which is incorrect 🙀 \r\n\r\nIf I query for [builds created in the last hour with the UTC time](https://api.buildkite.com/v2/builds?created_from=2016-11-24T11%3A29%3A46Z), with a Z (like docs) or [+00:00 offset](2016-11-24T12%3A29%3A46%2B00%3A00), I see the correct results 🤔 \r\n\r\nIf I take the UTC time from above, and change the offset to +11:00, I see identical results 🔥 ⏱ 🔥 "}}
{"actor":{"display_login":"ineffyble"}}