{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/40343898","id":40343898,"diff_hunk":"@@ -4,20 +4,19 @@\n # License, v. 2.0. If a copy of the MPL was not distributed with this\n # file, You can obtain one at http://mozilla.org/MPL/2.0/.\n \n-import time\n-from datetime import date\n+import time, datetime\n \n \n class MockCall(dict):\n \n-    def __init__(self, phone_number=None, call_type='incoming', date=date.today(), duration=1,\n+    def __init__(self, phone_number=None, call_type='incoming', date=datetime.date.today(), duration=1,\n                  status='cancelled', serviceId=0, emergency=False, voicemail=False, **kwargs):\n         super(MockCall, self).__init__(self, **kwargs)\n \n         current_time = repr(time.time()).replace('.', '')\n         self['number'] = phone_number if phone_number is not None else '555%s' % current_time[-7:]\n         self['type'] = call_type\n-        self['date'] = '{:%m/%d/%Y}'.format(date)\n+        self['date'] = int(time.mktime(datetime.datetime.strptime('{:%m/%d/%Y}'.format(date), '%m/%d/%Y').timetuple()) * 1000)","path":"tests/python/gaia-ui-tests/gaiatest/mocks/mock_call.py","position":20,"original_position":20,"commit_id":"12ccd9ae48a0d19b00b39e63ff06b322dd9e6e90","original_commit_id":"12ccd9ae48a0d19b00b39e63ff06b322dd9e6e90","user":{"login":"mwargers","id":2105568,"avatar_url":"https://avatars.githubusercontent.com/u/2105568?v=3","gravatar_id":"","url":"https://api.github.com/users/mwargers","html_url":"https://github.com/mwargers","followers_url":"https://api.github.com/users/mwargers/followers","following_url":"https://api.github.com/users/mwargers/following{/other_user}","gists_url":"https://api.github.com/users/mwargers/gists{/gist_id}","starred_url":"https://api.github.com/users/mwargers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwargers/subscriptions","organizations_url":"https://api.github.com/users/mwargers/orgs","repos_url":"https://api.github.com/users/mwargers/repos","events_url":"https://api.github.com/users/mwargers/events{/privacy}","received_events_url":"https://api.github.com/users/mwargers/received_events","type":"User","site_admin":false},"body":"Thanks, seems to work","created_at":"2015-09-24T17:02:30Z","updated_at":"2015-09-24T17:02:30Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/32029#discussion_r40343898","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32029","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/40343898"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/32029#discussion_r40343898"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32029"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32029","id":45894269,"html_url":"https://github.com/mozilla-b2g/gaia/pull/32029","diff_url":"https://github.com/mozilla-b2g/gaia/pull/32029.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/32029.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32029","number":32029,"state":"open","locked":false,"title":"Bug 1207646 - Fix failure in test_delete_call_log.py","user":{"login":"mwargers","id":2105568,"avatar_url":"https://avatars.githubusercontent.com/u/2105568?v=3","gravatar_id":"","url":"https://api.github.com/users/mwargers","html_url":"https://github.com/mwargers","followers_url":"https://api.github.com/users/mwargers/followers","following_url":"https://api.github.com/users/mwargers/following{/other_user}","gists_url":"https://api.github.com/users/mwargers/gists{/gist_id}","starred_url":"https://api.github.com/users/mwargers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwargers/subscriptions","organizations_url":"https://api.github.com/users/mwargers/orgs","repos_url":"https://api.github.com/users/mwargers/repos","events_url":"https://api.github.com/users/mwargers/events{/privacy}","received_events_url":"https://api.github.com/users/mwargers/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-24T13:06:03Z","updated_at":"2015-09-24T17:02:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfa9ead1649eb1f4522e54cbf4a3d737c62ef7fe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32029/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32029/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32029/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/12ccd9ae48a0d19b00b39e63ff06b322dd9e6e90","head":{"label":"mwargers:1207646","ref":"1207646","sha":"12ccd9ae48a0d19b00b39e63ff06b322dd9e6e90","user":{"login":"mwargers","id":2105568,"avatar_url":"https://avatars.githubusercontent.com/u/2105568?v=3","gravatar_id":"","url":"https://api.github.com/users/mwargers","html_url":"https://github.com/mwargers","followers_url":"https://api.github.com/users/mwargers/followers","following_url":"https://api.github.com/users/mwargers/following{/other_user}","gists_url":"https://api.github.com/users/mwargers/gists{/gist_id}","starred_url":"https://api.github.com/users/mwargers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwargers/subscriptions","organizations_url":"https://api.github.com/users/mwargers/orgs","repos_url":"https://api.github.com/users/mwargers/repos","events_url":"https://api.github.com/users/mwargers/events{/privacy}","received_events_url":"https://api.github.com/users/mwargers/received_events","type":"User","site_admin":false},"repo":{"id":24760261,"name":"gaia","full_name":"mwargers/gaia","owner":{"login":"mwargers","id":2105568,"avatar_url":"https://avatars.githubusercontent.com/u/2105568?v=3","gravatar_id":"","url":"https://api.github.com/users/mwargers","html_url":"https://github.com/mwargers","followers_url":"https://api.github.com/users/mwargers/followers","following_url":"https://api.github.com/users/mwargers/following{/other_user}","gists_url":"https://api.github.com/users/mwargers/gists{/gist_id}","starred_url":"https://api.github.com/users/mwargers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwargers/subscriptions","organizations_url":"https://api.github.com/users/mwargers/orgs","repos_url":"https://api.github.com/users/mwargers/repos","events_url":"https://api.github.com/users/mwargers/events{/privacy}","received_events_url":"https://api.github.com/users/mwargers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwargers/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":true,"url":"https://api.github.com/repos/mwargers/gaia","forks_url":"https://api.github.com/repos/mwargers/gaia/forks","keys_url":"https://api.github.com/repos/mwargers/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwargers/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwargers/gaia/teams","hooks_url":"https://api.github.com/repos/mwargers/gaia/hooks","issue_events_url":"https://api.github.com/repos/mwargers/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mwargers/gaia/events","assignees_url":"https://api.github.com/repos/mwargers/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mwargers/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mwargers/gaia/tags","blobs_url":"https://api.github.com/repos/mwargers/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwargers/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwargers/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwargers/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwargers/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mwargers/gaia/languages","stargazers_url":"https://api.github.com/repos/mwargers/gaia/stargazers","contributors_url":"https://api.github.com/repos/mwargers/gaia/contributors","subscribers_url":"https://api.github.com/repos/mwargers/gaia/subscribers","subscription_url":"https://api.github.com/repos/mwargers/gaia/subscription","commits_url":"https://api.github.com/repos/mwargers/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwargers/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwargers/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwargers/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mwargers/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mwargers/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwargers/gaia/merges","archive_url":"https://api.github.com/repos/mwargers/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwargers/gaia/downloads","issues_url":"https://api.github.com/repos/mwargers/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mwargers/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mwargers/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mwargers/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwargers/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mwargers/gaia/releases{/id}","created_at":"2014-10-03T13:54:50Z","updated_at":"2014-10-09T15:24:59Z","pushed_at":"2015-09-24T16:54:27Z","git_url":"git://github.com/mwargers/gaia.git","ssh_url":"git@github.com:mwargers/gaia.git","clone_url":"https://github.com/mwargers/gaia.git","svn_url":"https://github.com/mwargers/gaia","homepage":"https://wiki.mozilla.org/B2G","size":955906,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"mozilla-b2g:master","ref":"master","sha":"f1cb3089ee2a77dd779408ca86dbb5e4ed5af0b3","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-09-24T09:41:23Z","pushed_at":"2015-09-24T16:54:52Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1638194,"stargazers_count":1983,"watchers_count":1983,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2443,"mirror_url":null,"open_issues_count":1234,"forks":2443,"open_issues":1234,"watchers":1983,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32029"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/32029"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32029"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32029/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32029/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32029/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/12ccd9ae48a0d19b00b39e63ff06b322dd9e6e90"}}}}