{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/13175","labels_url":"https://api.github.com/repos/docker/docker/issues/13175/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/13175/comments","events_url":"https://api.github.com/repos/docker/docker/issues/13175/events","html_url":"https://github.com/docker/docker/issues/13175","id":75858217,"number":13175,"title":"events --since/--until timestamp parsing is not correct","user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-13T05:50:57Z","updated_at":"2015-05-13T05:52:11Z","closed_at":null,"body":"I'm running docker 1.6.1 release bits and I just created some container `docker run --rm busybox date` to create some events.\r\n\r\nThen I ran `docker events --since=2015-01-01T00:00:01` many events showed up.\r\nThen I added **`Z`** to the timestamp (because allowed in RFC3339) and requested:\r\n\r\n    docker events --since=2015-01-01T00:00:01Z \r\n\r\nIt shows nothing and command just hangs there.\r\n\r\nAdding **`Z`** for some reason, causes string to be not parsed as date correctly and as a fallback we just send the string as is to the daemon:\r\n\r\n    GET /v1.18/events?since=1420095601  (without Z)\r\n    GET /v1.18/events?since=2015-01-01T00%3A00%3A01Z (with Z)\r\n\r\nHowever daemon (Remote API) is supposed to handle only Unix timestamps. According to the docs, RFC3339 is an allowed timestamp and this looks like a bug.\r\n\r\nMy change #12362 made this surface up clearly (now it clearly says the specified value is not an integer). However as I said, it was broken in the release without my change as well.\r\n\r\nConclusion: `pkg/timeutills/utils.go#GetTimestamp()` is unable to parse the standard RFC3339.  It's happening because this special thing added to `pkg/timeutils/json.go`:\r\n\r\n    RFC3339NanoFixed = \"2006-01-02T15:04:05.000000000Z07:00\"\r\n\r\n The test case I added now (#13165) made me catch this. I don't know how far this goes back."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/101522067","html_url":"https://github.com/docker/docker/issues/13175#issuecomment-101522067","issue_url":"https://api.github.com/repos/docker/docker/issues/13175","id":101522067,"user":{"login":"ahmetalpbalkan","id":159209,"avatar_url":"https://avatars.githubusercontent.com/u/159209?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmetalpbalkan","html_url":"https://github.com/ahmetalpbalkan","followers_url":"https://api.github.com/users/ahmetalpbalkan/followers","following_url":"https://api.github.com/users/ahmetalpbalkan/following{/other_user}","gists_url":"https://api.github.com/users/ahmetalpbalkan/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmetalpbalkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmetalpbalkan/subscriptions","organizations_url":"https://api.github.com/users/ahmetalpbalkan/orgs","repos_url":"https://api.github.com/users/ahmetalpbalkan/repos","events_url":"https://api.github.com/users/ahmetalpbalkan/events{/privacy}","received_events_url":"https://api.github.com/users/ahmetalpbalkan/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T05:52:11Z","updated_at":"2015-05-13T05:52:11Z","body":"cc: @unclejack "}}