{"action":"closed","issue":{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1065","labels_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1065/labels{/name}","comments_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1065/comments","events_url":"https://api.github.com/repos/KC3Kai/KC3Kai/issues/1065/events","html_url":"https://github.com/KC3Kai/KC3Kai/issues/1065","id":118307555,"number":1065,"title":"Construction History","user":{"login":"nagatoyk","id":5924682,"avatar_url":"https://avatars.githubusercontent.com/u/5924682?v=3","gravatar_id":"","url":"https://api.github.com/users/nagatoyk","html_url":"https://github.com/nagatoyk","followers_url":"https://api.github.com/users/nagatoyk/followers","following_url":"https://api.github.com/users/nagatoyk/following{/other_user}","gists_url":"https://api.github.com/users/nagatoyk/gists{/gist_id}","starred_url":"https://api.github.com/users/nagatoyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagatoyk/subscriptions","organizations_url":"https://api.github.com/users/nagatoyk/orgs","repos_url":"https://api.github.com/users/nagatoyk/repos","events_url":"https://api.github.com/users/nagatoyk/events{/privacy}","received_events_url":"https://api.github.com/users/nagatoyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/labels/help","name":"help","color":"fbca04"},{"url":"https://api.github.com/repos/KC3Kai/KC3Kai/labels/wontfix","name":"wontfix","color":"cccccc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-23T02:15:42Z","updated_at":"2016-01-11T14:05:30Z","closed_at":"2016-01-11T14:05:30Z","body":"headers.Date lost\r\n![headers.Date lost](http://ww4.sinaimg.cn/large/64909e84jw1eyaoktvggrj20h50dd76j.jpg)\r\n\r\nConstruction History The Time unrecorded\r\n![Construction History The Time unrecorded1](http://ww2.sinaimg.cn/large/64909e84jw1eyaokyn9rrj20h20co0uv.jpg)\r\n![Construction History The Time unrecorded2](http://ww1.sinaimg.cn/large/64909e84jw1eyaokw29kcj20jr06qjsg.jpg)\r\n\r\nOur approach\r\n\r\nThe Kcsapi.js 413 lines of code\r\n```js\r\nvar UTCtime = Math.hrdInt (\"floor\", (new Date (headers.Date)).getTime (), 3,1.);\r\n```\r\nRevised to\r\n```js\r\nvar UTCtime = Math.hrdInt (\"floor\", (typeof headers.Date != \"undefined\" ? new Date(headers.Date) : new Date ()).getTime (), 3,1);\r\n```\r\nAnalyzing headers.Date are undefined, if not defined, then the record with the current time, time parameters without api head\r\n\r\n\r\nThe above problem is due ShimakazeGo result, our approach is to give all the headers.Date increase a judge to decide the solution of the problem!"}}