{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12777","labels_url":"https://api.github.com/repos/golang/go/issues/12777/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12777/comments","events_url":"https://api.github.com/repos/golang/go/issues/12777/events","html_url":"https://github.com/golang/go/issues/12777","id":108759192,"number":12777,"title":"syscall: NsecToTimeval does not handle times before 1970","user":{"login":"rfjakob","id":286847,"avatar_url":"https://avatars.githubusercontent.com/u/286847?v=3","gravatar_id":"","url":"https://api.github.com/users/rfjakob","html_url":"https://github.com/rfjakob","followers_url":"https://api.github.com/users/rfjakob/followers","following_url":"https://api.github.com/users/rfjakob/following{/other_user}","gists_url":"https://api.github.com/users/rfjakob/gists{/gist_id}","starred_url":"https://api.github.com/users/rfjakob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfjakob/subscriptions","organizations_url":"https://api.github.com/users/rfjakob/orgs","repos_url":"https://api.github.com/users/rfjakob/repos","events_url":"https://api.github.com/users/rfjakob/events{/privacy}","received_events_url":"https://api.github.com/users/rfjakob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/6","html_url":"https://github.com/golang/go/milestones/Unplanned","labels_url":"https://api.github.com/repos/golang/go/milestones/6/labels","id":1055141,"number":6,"title":"Unplanned","description":"No plan to fix in any specific release.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":1040,"closed_issues":113,"state":"open","created_at":"2015-04-06T20:47:19Z","updated_at":"2015-09-28T23:10:32Z","due_on":"2099-12-31T05:00:00Z","closed_at":null},"comments":4,"created_at":"2015-09-28T22:26:06Z","updated_at":"2015-09-29T06:27:53Z","closed_at":null,"body":"Passing a time before 1970 means that `nsec` is negative.\r\n\r\nThis means that the rounding will not work properly, and the returned `tv.Usec` will be negative.\r\n\r\nA negative `tv.Usec` is invalid and rejected by the Linux kernel with `EINVAL`.\r\n\r\nSource code for reference: https://github.com/golang/go/blob/master/src/syscall/syscall_linux_amd64.go#L96"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/143958013","html_url":"https://github.com/golang/go/issues/12777#issuecomment-143958013","issue_url":"https://api.github.com/repos/golang/go/issues/12777","id":143958013,"user":{"login":"rfjakob","id":286847,"avatar_url":"https://avatars.githubusercontent.com/u/286847?v=3","gravatar_id":"","url":"https://api.github.com/users/rfjakob","html_url":"https://github.com/rfjakob","followers_url":"https://api.github.com/users/rfjakob/followers","following_url":"https://api.github.com/users/rfjakob/following{/other_user}","gists_url":"https://api.github.com/users/rfjakob/gists{/gist_id}","starred_url":"https://api.github.com/users/rfjakob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfjakob/subscriptions","organizations_url":"https://api.github.com/users/rfjakob/orgs","repos_url":"https://api.github.com/users/rfjakob/repos","events_url":"https://api.github.com/users/rfjakob/events{/privacy}","received_events_url":"https://api.github.com/users/rfjakob/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T06:27:53Z","updated_at":"2015-09-29T06:27:53Z","body":"Testcase: https://gist.github.com/rfjakob/6d3359a97d22f32083bc\r\n\r\n\t t=1960-01-10 23:00:00 +0000 UTC \r\n\t nsec=-314758800000000000 \r\n\t tv.Sec=-314758799 tv.Usec=-999999\r\n\r\ntv.Sec and tv.Usec are both wrong. It should be:\r\n\r\n    tv.Sec=-314758800 tv.Usec=0"}}