{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/16395","labels_url":"https://api.github.com/repos/docker/docker/issues/16395/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/16395/comments","events_url":"https://api.github.com/repos/docker/docker/issues/16395/events","html_url":"https://github.com/docker/docker/issues/16395","id":107185472,"number":16395,"title":"`docker logs --since` incorrectly parses timestamps generated by `docker logs -t`","user":{"login":"mdub","id":610,"avatar_url":"https://avatars.githubusercontent.com/u/610?v=3","gravatar_id":"","url":"https://api.github.com/users/mdub","html_url":"https://github.com/mdub","followers_url":"https://api.github.com/users/mdub/followers","following_url":"https://api.github.com/users/mdub/following{/other_user}","gists_url":"https://api.github.com/users/mdub/gists{/gist_id}","starred_url":"https://api.github.com/users/mdub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdub/subscriptions","organizations_url":"https://api.github.com/users/mdub/orgs","repos_url":"https://api.github.com/users/mdub/repos","events_url":"https://api.github.com/users/mdub/events{/privacy}","received_events_url":"https://api.github.com/users/mdub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T11:38:21Z","updated_at":"2015-09-18T11:38:21Z","closed_at":null,"body":"`docker logs -t` emits RFC3339 timestamps with a \"Z\" timezone suffix, which denotes UTC.\r\n\r\n```\r\n$ docker logs -t 196a93700f9c\r\n2015-09-18T11:30:13.368899817Z 1\r\n2015-09-18T11:30:13.871609615Z 2\r\n2015-09-18T11:30:14.376469980Z 3\r\n2015-09-18T11:30:14.878498664Z 4\r\n2015-09-18T11:30:15.383748382Z 5\r\n```\r\n\r\nBut, `docker logs --since TIMESTAMP` seems to ignore the \"Z\" suffix.\r\n\r\n```\r\n$ docker logs -t --since 2015-09-18T11:30:15.383748382Z 196a93700f9c\r\n2015-09-18T11:30:13.368899817Z 1\r\n2015-09-18T11:30:13.871609615Z 2\r\n2015-09-18T11:30:14.376469980Z 3\r\n2015-09-18T11:30:14.878498664Z 4\r\n2015-09-18T11:30:15.383748382Z 5\r\n```\r\n\r\neven though it does recognise the equivalent \"+00:00\":\r\n\r\n```\r\n$ docker logs -t --since 2015-09-18T11:30:15.383748382+00:00 196a93700f9c\r\n2015-09-18T11:30:15.383748382Z 5\r\n```\r\n\r\nWe can also see that even with the explicit \"Z\" suffix, timestamp parsing is affected by local timezone:\r\n\r\n```\r\n$ docker logs -t --since 2015-09-18T11:30:15.383748382Z 196a93700f9c\r\n2015-09-18T11:30:13.368899817Z 1\r\n2015-09-18T11:30:13.871609615Z 2\r\n2015-09-18T11:30:14.376469980Z 3\r\n2015-09-18T11:30:14.878498664Z 4\r\n2015-09-18T11:30:15.383748382Z 5\r\n\r\n$ TZ=GMT docker logs -t --since 2015-09-18T11:30:15.383748382Z 196a93700f9c\r\n2015-09-18T11:30:15.383748382Z 5\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/141424546","html_url":"https://github.com/docker/docker/issues/16395#issuecomment-141424546","issue_url":"https://api.github.com/repos/docker/docker/issues/16395","id":141424546,"user":{"login":"GordonTheTurtle","id":10620046,"avatar_url":"https://avatars.githubusercontent.com/u/10620046?v=3","gravatar_id":"","url":"https://api.github.com/users/GordonTheTurtle","html_url":"https://github.com/GordonTheTurtle","followers_url":"https://api.github.com/users/GordonTheTurtle/followers","following_url":"https://api.github.com/users/GordonTheTurtle/following{/other_user}","gists_url":"https://api.github.com/users/GordonTheTurtle/gists{/gist_id}","starred_url":"https://api.github.com/users/GordonTheTurtle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordonTheTurtle/subscriptions","organizations_url":"https://api.github.com/users/GordonTheTurtle/orgs","repos_url":"https://api.github.com/users/GordonTheTurtle/repos","events_url":"https://api.github.com/users/GordonTheTurtle/events{/privacy}","received_events_url":"https://api.github.com/users/GordonTheTurtle/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T11:38:21Z","updated_at":"2015-09-18T11:38:21Z","body":"Hi!\n\t\nPlease read this important information about creating issues.\n\nIf you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.\n\nIf you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.\n\nThis is an automated, informational response. \n\nThank you.\n\nFor more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues \n\n-----------------------------\nBUG REPORT INFORMATION\n-----------------------------\nUse the commands below to provide key information from your environment:\n\n`docker version`:\n`docker info`:\n`uname -a`:\n\nProvide additional environment details (AWS, VirtualBox, physical, etc.):\n\n\n\nList the steps to reproduce the issue:\n1.\n2.\n3.\n\n\nDescribe the results you received:\n\n\nDescribe the results you expected:\n\n\nProvide additional info you think is important:\n\n\n----------END REPORT ---------\n\n\n\n#ENEEDMOREINFO\n"}}