{"action":"opened","issue":{"url":"https://api.github.com/repos/maximuk/rolling-scopes-js-assignments/issues/6","repository_url":"https://api.github.com/repos/maximuk/rolling-scopes-js-assignments","labels_url":"https://api.github.com/repos/maximuk/rolling-scopes-js-assignments/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/maximuk/rolling-scopes-js-assignments/issues/6/comments","events_url":"https://api.github.com/repos/maximuk/rolling-scopes-js-assignments/issues/6/events","html_url":"https://github.com/maximuk/rolling-scopes-js-assignments/issues/6","id":142053853,"number":6,"title":"timeSpanToString","user":{"login":"aorgish","id":5950751,"avatar_url":"https://avatars.githubusercontent.com/u/5950751?v=3","gravatar_id":"","url":"https://api.github.com/users/aorgish","html_url":"https://github.com/aorgish","followers_url":"https://api.github.com/users/aorgish/followers","following_url":"https://api.github.com/users/aorgish/following{/other_user}","gists_url":"https://api.github.com/users/aorgish/gists{/gist_id}","starred_url":"https://api.github.com/users/aorgish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aorgish/subscriptions","organizations_url":"https://api.github.com/users/aorgish/orgs","repos_url":"https://api.github.com/users/aorgish/repos","events_url":"https://api.github.com/users/aorgish/events{/privacy}","received_events_url":"https://api.github.com/users/aorgish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-19T11:34:16Z","updated_at":"2016-03-19T11:34:16Z","closed_at":null,"body":"https://github.com/maximuk/rolling-scopes-js-assignments/blob/8819a23372ebdf39e9dce985d2de4d8e99878537/task/03-date-tasks.js#L85-L92\r\n\r\nРешение прямолинейное. Можно попробовать похитрее:\r\n```\r\nreturn new Date(endDate - startDate).toISOString().slice(...); \r\n```"}}