{"action":"created","comment":{"url":"https://api.github.com/repos/2600hz/kazoo/pulls/comments/79007028","id":79007028,"diff_hunk":"@@ -74,21 +74,23 @@\n %%--------------------------------------------------------------------\n -spec new(ne_binary(), kz_proplist()) -> doc().\n new(AccountId, Props) ->\n-    {Year, Month, _} = erlang:date(),\n+    UtcSeconds = props:get_value(<<\"Message-Timestamp\">>, Props, kz_util:current_tstamp()),\n+    Timestamp  = props:get_value(<<\"Document-Timestamp\">>, Props, UtcSeconds),\n+    {Year, Month, _} = kz_util:to_date(Timestamp),","path":"core/kazoo_documents/src/kzd_box_message.erl","position":7,"original_position":7,"commit_id":"c15d97d6176d9ca37bda7f9e9550ec1a02e05cac","original_commit_id":"c15d97d6176d9ca37bda7f9e9550ec1a02e05cac","user":{"login":"icehess","id":4894215,"avatar_url":"https://avatars.githubusercontent.com/u/4894215?v=3","gravatar_id":"","url":"https://api.github.com/users/icehess","html_url":"https://github.com/icehess","followers_url":"https://api.github.com/users/icehess/followers","following_url":"https://api.github.com/users/icehess/following{/other_user}","gists_url":"https://api.github.com/users/icehess/gists{/gist_id}","starred_url":"https://api.github.com/users/icehess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icehess/subscriptions","organizations_url":"https://api.github.com/users/icehess/orgs","repos_url":"https://api.github.com/users/icehess/repos","events_url":"https://api.github.com/users/icehess/events{/privacy}","received_events_url":"https://api.github.com/users/icehess/received_events","type":"User","site_admin":false},"body":"I need Year and Month to create Db and MessageId","created_at":"2016-09-15T16:32:52Z","updated_at":"2016-09-15T16:32:52Z","html_url":"https://github.com/2600hz/kazoo/pull/2552#discussion_r79007028","pull_request_url":"https://api.github.com/repos/2600hz/kazoo/pulls/2552","_links":{"self":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/comments/79007028"},"html":{"href":"https://github.com/2600hz/kazoo/pull/2552#discussion_r79007028"},"pull_request":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/2552"}}},"pull_request":{"url":"https://api.github.com/repos/2600hz/kazoo/pulls/2552","id":85294514,"html_url":"https://github.com/2600hz/kazoo/pull/2552","diff_url":"https://github.com/2600hz/kazoo/pull/2552.diff","patch_url":"https://github.com/2600hz/kazoo/pull/2552.patch","issue_url":"https://api.github.com/repos/2600hz/kazoo/issues/2552","number":2552,"state":"open","locked":false,"title":"kvm-migrate: migrate voicemails in bulk to current modb","user":{"login":"icehess","id":4894215,"avatar_url":"https://avatars.githubusercontent.com/u/4894215?v=3","gravatar_id":"","url":"https://api.github.com/users/icehess","html_url":"https://github.com/icehess","followers_url":"https://api.github.com/users/icehess/followers","following_url":"https://api.github.com/users/icehess/following{/other_user}","gists_url":"https://api.github.com/users/icehess/gists{/gist_id}","starred_url":"https://api.github.com/users/icehess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icehess/subscriptions","organizations_url":"https://api.github.com/users/icehess/orgs","repos_url":"https://api.github.com/users/icehess/repos","events_url":"https://api.github.com/users/icehess/events{/privacy}","received_events_url":"https://api.github.com/users/icehess/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-14T19:59:32Z","updated_at":"2016-09-15T16:32:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5697af67c0758abfa4e3fa3987a7ff8ebfa3a219","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/2600hz/kazoo/pulls/2552/commits","review_comments_url":"https://api.github.com/repos/2600hz/kazoo/pulls/2552/comments","review_comment_url":"https://api.github.com/repos/2600hz/kazoo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2600hz/kazoo/issues/2552/comments","statuses_url":"https://api.github.com/repos/2600hz/kazoo/statuses/c15d97d6176d9ca37bda7f9e9550ec1a02e05cac","head":{"label":"2600hz:kvm-migrate","ref":"kvm-migrate","sha":"c15d97d6176d9ca37bda7f9e9550ec1a02e05cac","user":{"login":"2600hz","id":408801,"avatar_url":"https://avatars.githubusercontent.com/u/408801?v=3","gravatar_id":"","url":"https://api.github.com/users/2600hz","html_url":"https://github.com/2600hz","followers_url":"https://api.github.com/users/2600hz/followers","following_url":"https://api.github.com/users/2600hz/following{/other_user}","gists_url":"https://api.github.com/users/2600hz/gists{/gist_id}","starred_url":"https://api.github.com/users/2600hz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2600hz/subscriptions","organizations_url":"https://api.github.com/users/2600hz/orgs","repos_url":"https://api.github.com/users/2600hz/repos","events_url":"https://api.github.com/users/2600hz/events{/privacy}","received_events_url":"https://api.github.com/users/2600hz/received_events","type":"Organization","site_admin":false},"repo":{"id":2966241,"name":"kazoo","full_name":"2600hz/kazoo","owner":{"login":"2600hz","id":408801,"avatar_url":"https://avatars.githubusercontent.com/u/408801?v=3","gravatar_id":"","url":"https://api.github.com/users/2600hz","html_url":"https://github.com/2600hz","followers_url":"https://api.github.com/users/2600hz/followers","following_url":"https://api.github.com/users/2600hz/following{/other_user}","gists_url":"https://api.github.com/users/2600hz/gists{/gist_id}","starred_url":"https://api.github.com/users/2600hz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2600hz/subscriptions","organizations_url":"https://api.github.com/users/2600hz/orgs","repos_url":"https://api.github.com/users/2600hz/repos","events_url":"https://api.github.com/users/2600hz/events{/privacy}","received_events_url":"https://api.github.com/users/2600hz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2600hz/kazoo","description":"","fork":false,"url":"https://api.github.com/repos/2600hz/kazoo","forks_url":"https://api.github.com/repos/2600hz/kazoo/forks","keys_url":"https://api.github.com/repos/2600hz/kazoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2600hz/kazoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2600hz/kazoo/teams","hooks_url":"https://api.github.com/repos/2600hz/kazoo/hooks","issue_events_url":"https://api.github.com/repos/2600hz/kazoo/issues/events{/number}","events_url":"https://api.github.com/repos/2600hz/kazoo/events","assignees_url":"https://api.github.com/repos/2600hz/kazoo/assignees{/user}","branches_url":"https://api.github.com/repos/2600hz/kazoo/branches{/branch}","tags_url":"https://api.github.com/repos/2600hz/kazoo/tags","blobs_url":"https://api.github.com/repos/2600hz/kazoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2600hz/kazoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2600hz/kazoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/2600hz/kazoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2600hz/kazoo/statuses/{sha}","languages_url":"https://api.github.com/repos/2600hz/kazoo/languages","stargazers_url":"https://api.github.com/repos/2600hz/kazoo/stargazers","contributors_url":"https://api.github.com/repos/2600hz/kazoo/contributors","subscribers_url":"https://api.github.com/repos/2600hz/kazoo/subscribers","subscription_url":"https://api.github.com/repos/2600hz/kazoo/subscription","commits_url":"https://api.github.com/repos/2600hz/kazoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/2600hz/kazoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/2600hz/kazoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/2600hz/kazoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/2600hz/kazoo/contents/{+path}","compare_url":"https://api.github.com/repos/2600hz/kazoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2600hz/kazoo/merges","archive_url":"https://api.github.com/repos/2600hz/kazoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2600hz/kazoo/downloads","issues_url":"https://api.github.com/repos/2600hz/kazoo/issues{/number}","pulls_url":"https://api.github.com/repos/2600hz/kazoo/pulls{/number}","milestones_url":"https://api.github.com/repos/2600hz/kazoo/milestones{/number}","notifications_url":"https://api.github.com/repos/2600hz/kazoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2600hz/kazoo/labels{/name}","releases_url":"https://api.github.com/repos/2600hz/kazoo/releases{/id}","deployments_url":"https://api.github.com/repos/2600hz/kazoo/deployments","created_at":"2011-12-12T18:08:02Z","updated_at":"2016-09-15T05:16:40Z","pushed_at":"2016-09-15T15:46:51Z","git_url":"git://github.com/2600hz/kazoo.git","ssh_url":"git@github.com:2600hz/kazoo.git","clone_url":"https://github.com/2600hz/kazoo.git","svn_url":"https://github.com/2600hz/kazoo","homepage":"","size":445405,"stargazers_count":396,"watchers_count":396,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":16,"forks":201,"open_issues":16,"watchers":396,"default_branch":"master"}},"base":{"label":"2600hz:master","ref":"master","sha":"c5a737abecd98921eb447f5e9d29097bde00ed8f","user":{"login":"2600hz","id":408801,"avatar_url":"https://avatars.githubusercontent.com/u/408801?v=3","gravatar_id":"","url":"https://api.github.com/users/2600hz","html_url":"https://github.com/2600hz","followers_url":"https://api.github.com/users/2600hz/followers","following_url":"https://api.github.com/users/2600hz/following{/other_user}","gists_url":"https://api.github.com/users/2600hz/gists{/gist_id}","starred_url":"https://api.github.com/users/2600hz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2600hz/subscriptions","organizations_url":"https://api.github.com/users/2600hz/orgs","repos_url":"https://api.github.com/users/2600hz/repos","events_url":"https://api.github.com/users/2600hz/events{/privacy}","received_events_url":"https://api.github.com/users/2600hz/received_events","type":"Organization","site_admin":false},"repo":{"id":2966241,"name":"kazoo","full_name":"2600hz/kazoo","owner":{"login":"2600hz","id":408801,"avatar_url":"https://avatars.githubusercontent.com/u/408801?v=3","gravatar_id":"","url":"https://api.github.com/users/2600hz","html_url":"https://github.com/2600hz","followers_url":"https://api.github.com/users/2600hz/followers","following_url":"https://api.github.com/users/2600hz/following{/other_user}","gists_url":"https://api.github.com/users/2600hz/gists{/gist_id}","starred_url":"https://api.github.com/users/2600hz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2600hz/subscriptions","organizations_url":"https://api.github.com/users/2600hz/orgs","repos_url":"https://api.github.com/users/2600hz/repos","events_url":"https://api.github.com/users/2600hz/events{/privacy}","received_events_url":"https://api.github.com/users/2600hz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2600hz/kazoo","description":"","fork":false,"url":"https://api.github.com/repos/2600hz/kazoo","forks_url":"https://api.github.com/repos/2600hz/kazoo/forks","keys_url":"https://api.github.com/repos/2600hz/kazoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2600hz/kazoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2600hz/kazoo/teams","hooks_url":"https://api.github.com/repos/2600hz/kazoo/hooks","issue_events_url":"https://api.github.com/repos/2600hz/kazoo/issues/events{/number}","events_url":"https://api.github.com/repos/2600hz/kazoo/events","assignees_url":"https://api.github.com/repos/2600hz/kazoo/assignees{/user}","branches_url":"https://api.github.com/repos/2600hz/kazoo/branches{/branch}","tags_url":"https://api.github.com/repos/2600hz/kazoo/tags","blobs_url":"https://api.github.com/repos/2600hz/kazoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2600hz/kazoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2600hz/kazoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/2600hz/kazoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2600hz/kazoo/statuses/{sha}","languages_url":"https://api.github.com/repos/2600hz/kazoo/languages","stargazers_url":"https://api.github.com/repos/2600hz/kazoo/stargazers","contributors_url":"https://api.github.com/repos/2600hz/kazoo/contributors","subscribers_url":"https://api.github.com/repos/2600hz/kazoo/subscribers","subscription_url":"https://api.github.com/repos/2600hz/kazoo/subscription","commits_url":"https://api.github.com/repos/2600hz/kazoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/2600hz/kazoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/2600hz/kazoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/2600hz/kazoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/2600hz/kazoo/contents/{+path}","compare_url":"https://api.github.com/repos/2600hz/kazoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2600hz/kazoo/merges","archive_url":"https://api.github.com/repos/2600hz/kazoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2600hz/kazoo/downloads","issues_url":"https://api.github.com/repos/2600hz/kazoo/issues{/number}","pulls_url":"https://api.github.com/repos/2600hz/kazoo/pulls{/number}","milestones_url":"https://api.github.com/repos/2600hz/kazoo/milestones{/number}","notifications_url":"https://api.github.com/repos/2600hz/kazoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2600hz/kazoo/labels{/name}","releases_url":"https://api.github.com/repos/2600hz/kazoo/releases{/id}","deployments_url":"https://api.github.com/repos/2600hz/kazoo/deployments","created_at":"2011-12-12T18:08:02Z","updated_at":"2016-09-15T05:16:40Z","pushed_at":"2016-09-15T15:46:51Z","git_url":"git://github.com/2600hz/kazoo.git","ssh_url":"git@github.com:2600hz/kazoo.git","clone_url":"https://github.com/2600hz/kazoo.git","svn_url":"https://github.com/2600hz/kazoo","homepage":"","size":445405,"stargazers_count":396,"watchers_count":396,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":16,"forks":201,"open_issues":16,"watchers":396,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/2552"},"html":{"href":"https://github.com/2600hz/kazoo/pull/2552"},"issue":{"href":"https://api.github.com/repos/2600hz/kazoo/issues/2552"},"comments":{"href":"https://api.github.com/repos/2600hz/kazoo/issues/2552/comments"},"review_comments":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/2552/comments"},"review_comment":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2600hz/kazoo/pulls/2552/commits"},"statuses":{"href":"https://api.github.com/repos/2600hz/kazoo/statuses/c15d97d6176d9ca37bda7f9e9550ec1a02e05cac"}}}}
{"actor":{"display_login":"icehess"}}