{"action":"created","comment":{"url":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/22622057","id":22622057,"diff_hunk":"@@ -264,7 +264,7 @@ PCBucket.prototype.getFormatRevision = function(restbase, req) {\n                 .then(function(apiRes) {\n                     if (apiRes.status === 200) {\n                         var apiRev = apiRes.body.items[0].revisions[0];\n-                        var tid = rbUtil.tidFromDate(new Date(apiRev.timestamp));\n+                        var tid = rbUtil.tidFromDate(+apiRev.timestamp);","path":"lib/filters/bucket/pagecontent.js","position":5,"original_position":5,"commit_id":"a6a0238a6c30f7f90feda761d4b17f8f87662a64","original_commit_id":"a6a0238a6c30f7f90feda761d4b17f8f87662a64","user":{"login":"cscott","id":156080,"avatar_url":"https://avatars.githubusercontent.com/u/156080?v=3","gravatar_id":"","url":"https://api.github.com/users/cscott","html_url":"https://github.com/cscott","followers_url":"https://api.github.com/users/cscott/followers","following_url":"https://api.github.com/users/cscott/following{/other_user}","gists_url":"https://api.github.com/users/cscott/gists{/gist_id}","starred_url":"https://api.github.com/users/cscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cscott/subscriptions","organizations_url":"https://api.github.com/users/cscott/orgs","repos_url":"https://api.github.com/users/cscott/repos","events_url":"https://api.github.com/users/cscott/events{/privacy}","received_events_url":"https://api.github.com/users/cscott/received_events","type":"User","site_admin":false},"body":"Coerces to numeric, just to be safe.  Should catch the oddball case where (say) date.getTime() is a method, but returns some non-numeric value, like `{}`, since `isNaN(+{}) === true`.","created_at":"2015-01-07T22:32:43Z","updated_at":"2015-01-07T22:32:43Z","html_url":"https://github.com/wikimedia/restbase/pull/112#discussion_r22622057","pull_request_url":"https://api.github.com/repos/wikimedia/restbase/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/22622057"},"html":{"href":"https://github.com/wikimedia/restbase/pull/112#discussion_r22622057"},"pull_request":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/wikimedia/restbase/pulls/112","id":26993112,"html_url":"https://github.com/wikimedia/restbase/pull/112","diff_url":"https://github.com/wikimedia/restbase/pull/112.diff","patch_url":"https://github.com/wikimedia/restbase/pull/112.patch","issue_url":"https://api.github.com/repos/wikimedia/restbase/issues/112","number":112,"state":"open","locked":false,"title":"Purge remainder of calls to `new Date`.","user":{"login":"cscott","id":156080,"avatar_url":"https://avatars.githubusercontent.com/u/156080?v=3","gravatar_id":"","url":"https://api.github.com/users/cscott","html_url":"https://github.com/cscott","followers_url":"https://api.github.com/users/cscott/followers","following_url":"https://api.github.com/users/cscott/following{/other_user}","gists_url":"https://api.github.com/users/cscott/gists{/gist_id}","starred_url":"https://api.github.com/users/cscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cscott/subscriptions","organizations_url":"https://api.github.com/users/cscott/orgs","repos_url":"https://api.github.com/users/cscott/repos","events_url":"https://api.github.com/users/cscott/events{/privacy}","received_events_url":"https://api.github.com/users/cscott/received_events","type":"User","site_admin":false},"body":"Use `Date.now` and `Date.parse` instead.","created_at":"2015-01-07T22:28:27Z","updated_at":"2015-01-07T22:32:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7db92fe7b1bf8dfbad6b47120dc2623a8aec0a2e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wikimedia/restbase/pulls/112/commits","review_comments_url":"https://api.github.com/repos/wikimedia/restbase/pulls/112/comments","review_comment_url":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/{number}","comments_url":"https://api.github.com/repos/wikimedia/restbase/issues/112/comments","statuses_url":"https://api.github.com/repos/wikimedia/restbase/statuses/a6a0238a6c30f7f90feda761d4b17f8f87662a64","head":{"label":"cscott:date-now-2","ref":"date-now-2","sha":"a6a0238a6c30f7f90feda761d4b17f8f87662a64","user":{"login":"cscott","id":156080,"avatar_url":"https://avatars.githubusercontent.com/u/156080?v=3","gravatar_id":"","url":"https://api.github.com/users/cscott","html_url":"https://github.com/cscott","followers_url":"https://api.github.com/users/cscott/followers","following_url":"https://api.github.com/users/cscott/following{/other_user}","gists_url":"https://api.github.com/users/cscott/gists{/gist_id}","starred_url":"https://api.github.com/users/cscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cscott/subscriptions","organizations_url":"https://api.github.com/users/cscott/orgs","repos_url":"https://api.github.com/users/cscott/repos","events_url":"https://api.github.com/users/cscott/events{/privacy}","received_events_url":"https://api.github.com/users/cscott/received_events","type":"User","site_admin":false},"repo":{"id":28936205,"name":"restbase","full_name":"cscott/restbase","owner":{"login":"cscott","id":156080,"avatar_url":"https://avatars.githubusercontent.com/u/156080?v=3","gravatar_id":"","url":"https://api.github.com/users/cscott","html_url":"https://github.com/cscott","followers_url":"https://api.github.com/users/cscott/followers","following_url":"https://api.github.com/users/cscott/following{/other_user}","gists_url":"https://api.github.com/users/cscott/gists{/gist_id}","starred_url":"https://api.github.com/users/cscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cscott/subscriptions","organizations_url":"https://api.github.com/users/cscott/orgs","repos_url":"https://api.github.com/users/cscott/repos","events_url":"https://api.github.com/users/cscott/events{/privacy}","received_events_url":"https://api.github.com/users/cscott/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cscott/restbase","description":"Distributed storage with REST API & dispatcher for backend services","fork":true,"url":"https://api.github.com/repos/cscott/restbase","forks_url":"https://api.github.com/repos/cscott/restbase/forks","keys_url":"https://api.github.com/repos/cscott/restbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cscott/restbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cscott/restbase/teams","hooks_url":"https://api.github.com/repos/cscott/restbase/hooks","issue_events_url":"https://api.github.com/repos/cscott/restbase/issues/events{/number}","events_url":"https://api.github.com/repos/cscott/restbase/events","assignees_url":"https://api.github.com/repos/cscott/restbase/assignees{/user}","branches_url":"https://api.github.com/repos/cscott/restbase/branches{/branch}","tags_url":"https://api.github.com/repos/cscott/restbase/tags","blobs_url":"https://api.github.com/repos/cscott/restbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cscott/restbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cscott/restbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/cscott/restbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cscott/restbase/statuses/{sha}","languages_url":"https://api.github.com/repos/cscott/restbase/languages","stargazers_url":"https://api.github.com/repos/cscott/restbase/stargazers","contributors_url":"https://api.github.com/repos/cscott/restbase/contributors","subscribers_url":"https://api.github.com/repos/cscott/restbase/subscribers","subscription_url":"https://api.github.com/repos/cscott/restbase/subscription","commits_url":"https://api.github.com/repos/cscott/restbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/cscott/restbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/cscott/restbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/cscott/restbase/issues/comments/{number}","contents_url":"https://api.github.com/repos/cscott/restbase/contents/{+path}","compare_url":"https://api.github.com/repos/cscott/restbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cscott/restbase/merges","archive_url":"https://api.github.com/repos/cscott/restbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cscott/restbase/downloads","issues_url":"https://api.github.com/repos/cscott/restbase/issues{/number}","pulls_url":"https://api.github.com/repos/cscott/restbase/pulls{/number}","milestones_url":"https://api.github.com/repos/cscott/restbase/milestones{/number}","notifications_url":"https://api.github.com/repos/cscott/restbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cscott/restbase/labels{/name}","releases_url":"https://api.github.com/repos/cscott/restbase/releases{/id}","created_at":"2015-01-07T21:58:09Z","updated_at":"2015-01-07T21:58:09Z","pushed_at":"2015-01-07T22:27:59Z","git_url":"git://github.com/cscott/restbase.git","ssh_url":"git@github.com:cscott/restbase.git","clone_url":"https://github.com/cscott/restbase.git","svn_url":"https://github.com/cscott/restbase","homepage":"","size":2877,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wikimedia:master","ref":"master","sha":"c085fd1e8ccad9770f4a10b29949c4e53d94f086","user":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"repo":{"id":19002414,"name":"restbase","full_name":"wikimedia/restbase","owner":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wikimedia/restbase","description":"Distributed storage with REST API & dispatcher for backend services","fork":false,"url":"https://api.github.com/repos/wikimedia/restbase","forks_url":"https://api.github.com/repos/wikimedia/restbase/forks","keys_url":"https://api.github.com/repos/wikimedia/restbase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wikimedia/restbase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wikimedia/restbase/teams","hooks_url":"https://api.github.com/repos/wikimedia/restbase/hooks","issue_events_url":"https://api.github.com/repos/wikimedia/restbase/issues/events{/number}","events_url":"https://api.github.com/repos/wikimedia/restbase/events","assignees_url":"https://api.github.com/repos/wikimedia/restbase/assignees{/user}","branches_url":"https://api.github.com/repos/wikimedia/restbase/branches{/branch}","tags_url":"https://api.github.com/repos/wikimedia/restbase/tags","blobs_url":"https://api.github.com/repos/wikimedia/restbase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wikimedia/restbase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wikimedia/restbase/git/refs{/sha}","trees_url":"https://api.github.com/repos/wikimedia/restbase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wikimedia/restbase/statuses/{sha}","languages_url":"https://api.github.com/repos/wikimedia/restbase/languages","stargazers_url":"https://api.github.com/repos/wikimedia/restbase/stargazers","contributors_url":"https://api.github.com/repos/wikimedia/restbase/contributors","subscribers_url":"https://api.github.com/repos/wikimedia/restbase/subscribers","subscription_url":"https://api.github.com/repos/wikimedia/restbase/subscription","commits_url":"https://api.github.com/repos/wikimedia/restbase/commits{/sha}","git_commits_url":"https://api.github.com/repos/wikimedia/restbase/git/commits{/sha}","comments_url":"https://api.github.com/repos/wikimedia/restbase/comments{/number}","issue_comment_url":"https://api.github.com/repos/wikimedia/restbase/issues/comments/{number}","contents_url":"https://api.github.com/repos/wikimedia/restbase/contents/{+path}","compare_url":"https://api.github.com/repos/wikimedia/restbase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wikimedia/restbase/merges","archive_url":"https://api.github.com/repos/wikimedia/restbase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wikimedia/restbase/downloads","issues_url":"https://api.github.com/repos/wikimedia/restbase/issues{/number}","pulls_url":"https://api.github.com/repos/wikimedia/restbase/pulls{/number}","milestones_url":"https://api.github.com/repos/wikimedia/restbase/milestones{/number}","notifications_url":"https://api.github.com/repos/wikimedia/restbase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wikimedia/restbase/labels{/name}","releases_url":"https://api.github.com/repos/wikimedia/restbase/releases{/id}","created_at":"2014-04-21T18:35:00Z","updated_at":"2015-01-07T22:05:00Z","pushed_at":"2015-01-07T22:05:00Z","git_url":"git://github.com/wikimedia/restbase.git","ssh_url":"git@github.com:wikimedia/restbase.git","clone_url":"https://github.com/wikimedia/restbase.git","svn_url":"https://github.com/wikimedia/restbase","homepage":"","size":2877,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/112"},"html":{"href":"https://github.com/wikimedia/restbase/pull/112"},"issue":{"href":"https://api.github.com/repos/wikimedia/restbase/issues/112"},"comments":{"href":"https://api.github.com/repos/wikimedia/restbase/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/wikimedia/restbase/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/wikimedia/restbase/statuses/a6a0238a6c30f7f90feda761d4b17f8f87662a64"}}}}