{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/comments/44787411","id":44787411,"diff_hunk":"@@ -2,22 +2,129 @@\n \n var moment = require('./moment');\n \n+var DAY = {\n+    ВС: 0,\n+    ПН: 1,\n+    ВТ: 2,\n+    СР: 3,\n+    ЧТ: 4,\n+    ПТ: 5,\n+    СБ: 6\n+};\n+\n+var DAYS_IN_WEEK = 7;\n+\n // Выбирает подходящий ближайший момент начала ограбления\n module.exports.getAppropriateMoment = function (json, minDuration, workingHours) {\n     var appropriateMoment = moment();\n+    appropriateMoment.timezone = 5;\n \n-    // 1. Читаем json\n-    // 2. Находим подходящий ближайший момент начала ограбления\n-    // 3. И записываем в appropriateMoment\n+    var gang = JSON.parse(json, reviever);","path":"robbery.js","position":24,"original_position":24,"commit_id":"e98c3cafdd4d861eff2809cdd4b6066c325bceef","original_commit_id":"e98c3cafdd4d861eff2809cdd4b6066c325bceef","user":{"login":"sameoldmadness","id":1537724,"avatar_url":"https://avatars.githubusercontent.com/u/1537724?v=3","gravatar_id":"","url":"https://api.github.com/users/sameoldmadness","html_url":"https://github.com/sameoldmadness","followers_url":"https://api.github.com/users/sameoldmadness/followers","following_url":"https://api.github.com/users/sameoldmadness/following{/other_user}","gists_url":"https://api.github.com/users/sameoldmadness/gists{/gist_id}","starred_url":"https://api.github.com/users/sameoldmadness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameoldmadness/subscriptions","organizations_url":"https://api.github.com/users/sameoldmadness/orgs","repos_url":"https://api.github.com/users/sameoldmadness/repos","events_url":"https://api.github.com/users/sameoldmadness/events{/privacy}","received_events_url":"https://api.github.com/users/sameoldmadness/received_events","type":"User","site_admin":false},"body":"Ухты, круто.","created_at":"2015-11-13T14:32:40Z","updated_at":"2015-11-13T14:32:40Z","html_url":"https://github.com/urfu-2015/javascript-tasks-6/pull/34#discussion_r44787411","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/comments/44787411"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-6/pull/34#discussion_r44787411"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/34","id":50619426,"html_url":"https://github.com/urfu-2015/javascript-tasks-6/pull/34","diff_url":"https://github.com/urfu-2015/javascript-tasks-6/pull/34.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-6/pull/34.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues/34","number":34,"state":"open","locked":false,"title":"Дудкевич Дмитрий","user":{"login":"DudaGod","id":5900697,"avatar_url":"https://avatars.githubusercontent.com/u/5900697?v=3","gravatar_id":"","url":"https://api.github.com/users/DudaGod","html_url":"https://github.com/DudaGod","followers_url":"https://api.github.com/users/DudaGod/followers","following_url":"https://api.github.com/users/DudaGod/following{/other_user}","gists_url":"https://api.github.com/users/DudaGod/gists{/gist_id}","starred_url":"https://api.github.com/users/DudaGod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DudaGod/subscriptions","organizations_url":"https://api.github.com/users/DudaGod/orgs","repos_url":"https://api.github.com/users/DudaGod/repos","events_url":"https://api.github.com/users/DudaGod/events{/privacy}","received_events_url":"https://api.github.com/users/DudaGod/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-13T09:21:41Z","updated_at":"2015-11-13T14:32:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e39a334a29765af389be78b726bf0b7b1a005a4","assignee":{"login":"sameoldmadness","id":1537724,"avatar_url":"https://avatars.githubusercontent.com/u/1537724?v=3","gravatar_id":"","url":"https://api.github.com/users/sameoldmadness","html_url":"https://github.com/sameoldmadness","followers_url":"https://api.github.com/users/sameoldmadness/followers","following_url":"https://api.github.com/users/sameoldmadness/following{/other_user}","gists_url":"https://api.github.com/users/sameoldmadness/gists{/gist_id}","starred_url":"https://api.github.com/users/sameoldmadness/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sameoldmadness/subscriptions","organizations_url":"https://api.github.com/users/sameoldmadness/orgs","repos_url":"https://api.github.com/users/sameoldmadness/repos","events_url":"https://api.github.com/users/sameoldmadness/events{/privacy}","received_events_url":"https://api.github.com/users/sameoldmadness/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/34/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/34/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues/34/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/statuses/e98c3cafdd4d861eff2809cdd4b6066c325bceef","head":{"label":"DudaGod:master","ref":"master","sha":"e98c3cafdd4d861eff2809cdd4b6066c325bceef","user":{"login":"DudaGod","id":5900697,"avatar_url":"https://avatars.githubusercontent.com/u/5900697?v=3","gravatar_id":"","url":"https://api.github.com/users/DudaGod","html_url":"https://github.com/DudaGod","followers_url":"https://api.github.com/users/DudaGod/followers","following_url":"https://api.github.com/users/DudaGod/following{/other_user}","gists_url":"https://api.github.com/users/DudaGod/gists{/gist_id}","starred_url":"https://api.github.com/users/DudaGod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DudaGod/subscriptions","organizations_url":"https://api.github.com/users/DudaGod/orgs","repos_url":"https://api.github.com/users/DudaGod/repos","events_url":"https://api.github.com/users/DudaGod/events{/privacy}","received_events_url":"https://api.github.com/users/DudaGod/received_events","type":"User","site_admin":false},"repo":{"id":45977095,"name":"javascript-tasks-6","full_name":"DudaGod/javascript-tasks-6","owner":{"login":"DudaGod","id":5900697,"avatar_url":"https://avatars.githubusercontent.com/u/5900697?v=3","gravatar_id":"","url":"https://api.github.com/users/DudaGod","html_url":"https://github.com/DudaGod","followers_url":"https://api.github.com/users/DudaGod/followers","following_url":"https://api.github.com/users/DudaGod/following{/other_user}","gists_url":"https://api.github.com/users/DudaGod/gists{/gist_id}","starred_url":"https://api.github.com/users/DudaGod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DudaGod/subscriptions","organizations_url":"https://api.github.com/users/DudaGod/orgs","repos_url":"https://api.github.com/users/DudaGod/repos","events_url":"https://api.github.com/users/DudaGod/events{/privacy}","received_events_url":"https://api.github.com/users/DudaGod/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DudaGod/javascript-tasks-6","description":"Задача к лекции « Объекты, Date, Math» – «0b11 друзей Оушена»","fork":true,"url":"https://api.github.com/repos/DudaGod/javascript-tasks-6","forks_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/forks","keys_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/teams","hooks_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/hooks","issue_events_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/issues/events{/number}","events_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/events","assignees_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/assignees{/user}","branches_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/branches{/branch}","tags_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/tags","blobs_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/git/refs{/sha}","trees_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/statuses/{sha}","languages_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/languages","stargazers_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/stargazers","contributors_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/contributors","subscribers_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/subscribers","subscription_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/subscription","commits_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/commits{/sha}","git_commits_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/git/commits{/sha}","comments_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/comments{/number}","issue_comment_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/issues/comments{/number}","contents_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/contents/{+path}","compare_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/merges","archive_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/downloads","issues_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/issues{/number}","pulls_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/pulls{/number}","milestones_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/milestones{/number}","notifications_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/labels{/name}","releases_url":"https://api.github.com/repos/DudaGod/javascript-tasks-6/releases{/id}","created_at":"2015-11-11T11:12:09Z","updated_at":"2015-11-11T11:12:11Z","pushed_at":"2015-11-13T09:41:57Z","git_url":"git://github.com/DudaGod/javascript-tasks-6.git","ssh_url":"git@github.com:DudaGod/javascript-tasks-6.git","clone_url":"https://github.com/DudaGod/javascript-tasks-6.git","svn_url":"https://github.com/DudaGod/javascript-tasks-6","homepage":"","size":1350,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2015:master","ref":"master","sha":"a3e2b2a72420bc0195d457a39c732ae5151b04ea","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":45454584,"name":"javascript-tasks-6","full_name":"urfu-2015/javascript-tasks-6","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/javascript-tasks-6","description":"Задача к лекции « Объекты, Date, Math» – «0b11 друзей Оушена»","fork":false,"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6","forks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/forks","keys_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/teams","hooks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/events","assignees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/tags","blobs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/subscription","commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/merges","archive_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/downloads","issues_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/releases{/id}","created_at":"2015-11-03T09:12:41Z","updated_at":"2015-11-03T14:38:37Z","pushed_at":"2015-11-13T13:39:14Z","git_url":"git://github.com/urfu-2015/javascript-tasks-6.git","ssh_url":"git@github.com:urfu-2015/javascript-tasks-6.git","clone_url":"https://github.com/urfu-2015/javascript-tasks-6.git","svn_url":"https://github.com/urfu-2015/javascript-tasks-6","homepage":"","size":1350,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":27,"forks":45,"open_issues":27,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/34"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-6/pull/34"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues/34"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/statuses/e98c3cafdd4d861eff2809cdd4b6066c325bceef"}}}}