{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/comments/44515768","id":44515768,"diff_hunk":"@@ -6,10 +6,39 @@ module.exports = function () {\n         date: null,\n \n         // А здесь часовой пояс\n-        timezone: null,\n+        //cur_timezone: -Math.floor(new Date().getTimezoneOffset() / 60),\n+        cur_timezone: 5,\n+\n+        get timezone () {\n+            return this.cur_timezone;\n+        },\n+\n+        set timezone (value) {\n+            this.cur_timezone = value;\n+        },\n+\n+        set dateOfMoment (value) {\n+            this.date = value;\n+        },\n \n         // Выводит дату в переданном формате\n         format: function (pattern) {\n+            //console.log(this.cur_timezone);\n+            var ch;\n+            var time = toLocalTime(this.date, this.timezone);\n+            var str = pattern.replace('%DD', getWeekDay(time.day).toUpperCase());\n+            if (time.hours == 0) {","path":"moment.js","position":26,"original_position":26,"commit_id":"9c81fdbe83ba2f10ff2b4ae50bba3273425074b1","original_commit_id":"9c81fdbe83ba2f10ff2b4ae50bba3273425074b1","user":{"login":"Zhigalov","id":1654243,"avatar_url":"https://avatars.githubusercontent.com/u/1654243?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhigalov","html_url":"https://github.com/Zhigalov","followers_url":"https://api.github.com/users/Zhigalov/followers","following_url":"https://api.github.com/users/Zhigalov/following{/other_user}","gists_url":"https://api.github.com/users/Zhigalov/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhigalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhigalov/subscriptions","organizations_url":"https://api.github.com/users/Zhigalov/orgs","repos_url":"https://api.github.com/users/Zhigalov/repos","events_url":"https://api.github.com/users/Zhigalov/events{/privacy}","received_events_url":"https://api.github.com/users/Zhigalov/received_events","type":"User","site_admin":false},"body":"Лучше сразу привыкать везде использовать строгое сравнение: `===` вместо `==`","created_at":"2015-11-11T09:41:06Z","updated_at":"2015-11-11T09:41:06Z","html_url":"https://github.com/urfu-2015/javascript-tasks-6/pull/28#discussion_r44515768","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/comments/44515768"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-6/pull/28#discussion_r44515768"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/28","id":50183762,"html_url":"https://github.com/urfu-2015/javascript-tasks-6/pull/28","diff_url":"https://github.com/urfu-2015/javascript-tasks-6/pull/28.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-6/pull/28.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues/28","number":28,"state":"open","locked":false,"title":"Катя Рыбалка","user":{"login":"Mokoshka","id":14892550,"avatar_url":"https://avatars.githubusercontent.com/u/14892550?v=3","gravatar_id":"","url":"https://api.github.com/users/Mokoshka","html_url":"https://github.com/Mokoshka","followers_url":"https://api.github.com/users/Mokoshka/followers","following_url":"https://api.github.com/users/Mokoshka/following{/other_user}","gists_url":"https://api.github.com/users/Mokoshka/gists{/gist_id}","starred_url":"https://api.github.com/users/Mokoshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mokoshka/subscriptions","organizations_url":"https://api.github.com/users/Mokoshka/orgs","repos_url":"https://api.github.com/users/Mokoshka/repos","events_url":"https://api.github.com/users/Mokoshka/events{/privacy}","received_events_url":"https://api.github.com/users/Mokoshka/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-09T21:57:41Z","updated_at":"2015-11-11T09:41:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fe8991335e40d2a559923c55f53b7fac72f5025","assignee":{"login":"Zhigalov","id":1654243,"avatar_url":"https://avatars.githubusercontent.com/u/1654243?v=3","gravatar_id":"","url":"https://api.github.com/users/Zhigalov","html_url":"https://github.com/Zhigalov","followers_url":"https://api.github.com/users/Zhigalov/followers","following_url":"https://api.github.com/users/Zhigalov/following{/other_user}","gists_url":"https://api.github.com/users/Zhigalov/gists{/gist_id}","starred_url":"https://api.github.com/users/Zhigalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zhigalov/subscriptions","organizations_url":"https://api.github.com/users/Zhigalov/orgs","repos_url":"https://api.github.com/users/Zhigalov/repos","events_url":"https://api.github.com/users/Zhigalov/events{/privacy}","received_events_url":"https://api.github.com/users/Zhigalov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/28/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/28/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/28/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/statuses/9c81fdbe83ba2f10ff2b4ae50bba3273425074b1","head":{"label":"Mokoshka:master","ref":"master","sha":"9c81fdbe83ba2f10ff2b4ae50bba3273425074b1","user":{"login":"Mokoshka","id":14892550,"avatar_url":"https://avatars.githubusercontent.com/u/14892550?v=3","gravatar_id":"","url":"https://api.github.com/users/Mokoshka","html_url":"https://github.com/Mokoshka","followers_url":"https://api.github.com/users/Mokoshka/followers","following_url":"https://api.github.com/users/Mokoshka/following{/other_user}","gists_url":"https://api.github.com/users/Mokoshka/gists{/gist_id}","starred_url":"https://api.github.com/users/Mokoshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mokoshka/subscriptions","organizations_url":"https://api.github.com/users/Mokoshka/orgs","repos_url":"https://api.github.com/users/Mokoshka/repos","events_url":"https://api.github.com/users/Mokoshka/events{/privacy}","received_events_url":"https://api.github.com/users/Mokoshka/received_events","type":"User","site_admin":false},"repo":{"id":45849377,"name":"javascript-tasks-6","full_name":"Mokoshka/javascript-tasks-6","owner":{"login":"Mokoshka","id":14892550,"avatar_url":"https://avatars.githubusercontent.com/u/14892550?v=3","gravatar_id":"","url":"https://api.github.com/users/Mokoshka","html_url":"https://github.com/Mokoshka","followers_url":"https://api.github.com/users/Mokoshka/followers","following_url":"https://api.github.com/users/Mokoshka/following{/other_user}","gists_url":"https://api.github.com/users/Mokoshka/gists{/gist_id}","starred_url":"https://api.github.com/users/Mokoshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mokoshka/subscriptions","organizations_url":"https://api.github.com/users/Mokoshka/orgs","repos_url":"https://api.github.com/users/Mokoshka/repos","events_url":"https://api.github.com/users/Mokoshka/events{/privacy}","received_events_url":"https://api.github.com/users/Mokoshka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Mokoshka/javascript-tasks-6","description":"Задача к лекции « Объекты, Date, Math» – «0b11 друзей Оушена»","fork":true,"url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6","forks_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/forks","keys_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/teams","hooks_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/hooks","issue_events_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/issues/events{/number}","events_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/events","assignees_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/assignees{/user}","branches_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/branches{/branch}","tags_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/tags","blobs_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/statuses/{sha}","languages_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/languages","stargazers_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/stargazers","contributors_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/contributors","subscribers_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/subscribers","subscription_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/subscription","commits_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/contents/{+path}","compare_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/merges","archive_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/downloads","issues_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/issues{/number}","pulls_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/pulls{/number}","milestones_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/milestones{/number}","notifications_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/labels{/name}","releases_url":"https://api.github.com/repos/Mokoshka/javascript-tasks-6/releases{/id}","created_at":"2015-11-09T16:05:18Z","updated_at":"2015-11-09T16:05:19Z","pushed_at":"2015-11-10T19:22:02Z","git_url":"git://github.com/Mokoshka/javascript-tasks-6.git","ssh_url":"git@github.com:Mokoshka/javascript-tasks-6.git","clone_url":"https://github.com/Mokoshka/javascript-tasks-6.git","svn_url":"https://github.com/Mokoshka/javascript-tasks-6","homepage":"","size":124,"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-11T08:38:48Z","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":44,"mirror_url":null,"open_issues_count":29,"forks":44,"open_issues":29,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/28"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-6/pull/28"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues/28"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/pulls/28/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/28/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-6/statuses/9c81fdbe83ba2f10ff2b4ae50bba3273425074b1"}}}}