{"action":"created","comment":{"url":"https://api.github.com/repos/unbounce/kissr/pulls/comments/54909323","id":54909323,"diff_hunk":"@@ -101,3 +101,24 @@ loadPages <- function (object, url) {\n   }\n   return(result)\n }\n+\n+# We only support a specific format returned by KissMetrics, so we'll use\n+# lubridate::fast_strptime instead of parse_date_time.\n+# Take a character vector, and if we think it is a time that can be parsed by\n+# format we'll return a vector of times, if it can't be converted (any of the\n+# non-NA elements fail to parse) we return the original vector\n+try_convert_time <- function(char_vector, formats = \"%Y-%m-%d %H:%M:%S\") {\n+  result <- char_vector\n+\n+  timezone <- Sys.getenv(\"FROM_TIMEZONE\")","path":"R/utilities.R","position":13,"original_position":13,"commit_id":"2440be525dcfb13c9a1987eb2f6228f461aa507a","original_commit_id":"2440be525dcfb13c9a1987eb2f6228f461aa507a","user":{"login":"yosemsweet","id":198039,"avatar_url":"https://avatars.githubusercontent.com/u/198039?v=3","gravatar_id":"","url":"https://api.github.com/users/yosemsweet","html_url":"https://github.com/yosemsweet","followers_url":"https://api.github.com/users/yosemsweet/followers","following_url":"https://api.github.com/users/yosemsweet/following{/other_user}","gists_url":"https://api.github.com/users/yosemsweet/gists{/gist_id}","starred_url":"https://api.github.com/users/yosemsweet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosemsweet/subscriptions","organizations_url":"https://api.github.com/users/yosemsweet/orgs","repos_url":"https://api.github.com/users/yosemsweet/repos","events_url":"https://api.github.com/users/yosemsweet/events{/privacy}","received_events_url":"https://api.github.com/users/yosemsweet/received_events","type":"User","site_admin":false},"body":"KISSR__KISSMETRICS_CONFIGURED_TIMEZONE_ZONENAME  works for me","created_at":"2016-03-03T16:53:49Z","updated_at":"2016-03-03T16:53:49Z","html_url":"https://github.com/unbounce/kissr/pull/7#discussion_r54909323","pull_request_url":"https://api.github.com/repos/unbounce/kissr/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/unbounce/kissr/pulls/comments/54909323"},"html":{"href":"https://github.com/unbounce/kissr/pull/7#discussion_r54909323"},"pull_request":{"href":"https://api.github.com/repos/unbounce/kissr/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/unbounce/kissr/pulls/7","id":61363721,"html_url":"https://github.com/unbounce/kissr/pull/7","diff_url":"https://github.com/unbounce/kissr/pull/7.diff","patch_url":"https://github.com/unbounce/kissr/pull/7.patch","issue_url":"https://api.github.com/repos/unbounce/kissr/issues/7","number":7,"state":"open","locked":false,"title":"Updated the kissr package to try and convert any times found in a rep…","user":{"login":"yosemsweet","id":198039,"avatar_url":"https://avatars.githubusercontent.com/u/198039?v=3","gravatar_id":"","url":"https://api.github.com/users/yosemsweet","html_url":"https://github.com/yosemsweet","followers_url":"https://api.github.com/users/yosemsweet/followers","following_url":"https://api.github.com/users/yosemsweet/following{/other_user}","gists_url":"https://api.github.com/users/yosemsweet/gists{/gist_id}","starred_url":"https://api.github.com/users/yosemsweet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosemsweet/subscriptions","organizations_url":"https://api.github.com/users/yosemsweet/orgs","repos_url":"https://api.github.com/users/yosemsweet/repos","events_url":"https://api.github.com/users/yosemsweet/events{/privacy}","received_events_url":"https://api.github.com/users/yosemsweet/received_events","type":"User","site_admin":false},"body":"…ort to be from the timezone FROM_TIMEZONE (specified via ENV VARS). Then return the actual times in UTC.","created_at":"2016-03-02T07:59:53Z","updated_at":"2016-03-03T16:53:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ba368be82056d98fa75e9dad2f1aad3875f61ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/unbounce/kissr/pulls/7/commits","review_comments_url":"https://api.github.com/repos/unbounce/kissr/pulls/7/comments","review_comment_url":"https://api.github.com/repos/unbounce/kissr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/unbounce/kissr/issues/7/comments","statuses_url":"https://api.github.com/repos/unbounce/kissr/statuses/2440be525dcfb13c9a1987eb2f6228f461aa507a","head":{"label":"unbounce:timezone-offsets","ref":"timezone-offsets","sha":"2440be525dcfb13c9a1987eb2f6228f461aa507a","user":{"login":"unbounce","id":115120,"avatar_url":"https://avatars.githubusercontent.com/u/115120?v=3","gravatar_id":"","url":"https://api.github.com/users/unbounce","html_url":"https://github.com/unbounce","followers_url":"https://api.github.com/users/unbounce/followers","following_url":"https://api.github.com/users/unbounce/following{/other_user}","gists_url":"https://api.github.com/users/unbounce/gists{/gist_id}","starred_url":"https://api.github.com/users/unbounce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unbounce/subscriptions","organizations_url":"https://api.github.com/users/unbounce/orgs","repos_url":"https://api.github.com/users/unbounce/repos","events_url":"https://api.github.com/users/unbounce/events{/privacy}","received_events_url":"https://api.github.com/users/unbounce/received_events","type":"Organization","site_admin":false},"repo":{"id":42072893,"name":"kissr","full_name":"unbounce/kissr","owner":{"login":"unbounce","id":115120,"avatar_url":"https://avatars.githubusercontent.com/u/115120?v=3","gravatar_id":"","url":"https://api.github.com/users/unbounce","html_url":"https://github.com/unbounce","followers_url":"https://api.github.com/users/unbounce/followers","following_url":"https://api.github.com/users/unbounce/following{/other_user}","gists_url":"https://api.github.com/users/unbounce/gists{/gist_id}","starred_url":"https://api.github.com/users/unbounce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unbounce/subscriptions","organizations_url":"https://api.github.com/users/unbounce/orgs","repos_url":"https://api.github.com/users/unbounce/repos","events_url":"https://api.github.com/users/unbounce/events{/privacy}","received_events_url":"https://api.github.com/users/unbounce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unbounce/kissr","description":"Access KissMetrics reports through R","fork":false,"url":"https://api.github.com/repos/unbounce/kissr","forks_url":"https://api.github.com/repos/unbounce/kissr/forks","keys_url":"https://api.github.com/repos/unbounce/kissr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unbounce/kissr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unbounce/kissr/teams","hooks_url":"https://api.github.com/repos/unbounce/kissr/hooks","issue_events_url":"https://api.github.com/repos/unbounce/kissr/issues/events{/number}","events_url":"https://api.github.com/repos/unbounce/kissr/events","assignees_url":"https://api.github.com/repos/unbounce/kissr/assignees{/user}","branches_url":"https://api.github.com/repos/unbounce/kissr/branches{/branch}","tags_url":"https://api.github.com/repos/unbounce/kissr/tags","blobs_url":"https://api.github.com/repos/unbounce/kissr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unbounce/kissr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unbounce/kissr/git/refs{/sha}","trees_url":"https://api.github.com/repos/unbounce/kissr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unbounce/kissr/statuses/{sha}","languages_url":"https://api.github.com/repos/unbounce/kissr/languages","stargazers_url":"https://api.github.com/repos/unbounce/kissr/stargazers","contributors_url":"https://api.github.com/repos/unbounce/kissr/contributors","subscribers_url":"https://api.github.com/repos/unbounce/kissr/subscribers","subscription_url":"https://api.github.com/repos/unbounce/kissr/subscription","commits_url":"https://api.github.com/repos/unbounce/kissr/commits{/sha}","git_commits_url":"https://api.github.com/repos/unbounce/kissr/git/commits{/sha}","comments_url":"https://api.github.com/repos/unbounce/kissr/comments{/number}","issue_comment_url":"https://api.github.com/repos/unbounce/kissr/issues/comments{/number}","contents_url":"https://api.github.com/repos/unbounce/kissr/contents/{+path}","compare_url":"https://api.github.com/repos/unbounce/kissr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unbounce/kissr/merges","archive_url":"https://api.github.com/repos/unbounce/kissr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unbounce/kissr/downloads","issues_url":"https://api.github.com/repos/unbounce/kissr/issues{/number}","pulls_url":"https://api.github.com/repos/unbounce/kissr/pulls{/number}","milestones_url":"https://api.github.com/repos/unbounce/kissr/milestones{/number}","notifications_url":"https://api.github.com/repos/unbounce/kissr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unbounce/kissr/labels{/name}","releases_url":"https://api.github.com/repos/unbounce/kissr/releases{/id}","deployments_url":"https://api.github.com/repos/unbounce/kissr/deployments","created_at":"2015-09-07T20:21:23Z","updated_at":"2016-02-03T17:21:15Z","pushed_at":"2016-03-02T08:04:49Z","git_url":"git://github.com/unbounce/kissr.git","ssh_url":"git@github.com:unbounce/kissr.git","clone_url":"https://github.com/unbounce/kissr.git","svn_url":"https://github.com/unbounce/kissr","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"unbounce:master","ref":"master","sha":"63e8af2a3b1ff26a3233151b19dbeabb8e3b888e","user":{"login":"unbounce","id":115120,"avatar_url":"https://avatars.githubusercontent.com/u/115120?v=3","gravatar_id":"","url":"https://api.github.com/users/unbounce","html_url":"https://github.com/unbounce","followers_url":"https://api.github.com/users/unbounce/followers","following_url":"https://api.github.com/users/unbounce/following{/other_user}","gists_url":"https://api.github.com/users/unbounce/gists{/gist_id}","starred_url":"https://api.github.com/users/unbounce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unbounce/subscriptions","organizations_url":"https://api.github.com/users/unbounce/orgs","repos_url":"https://api.github.com/users/unbounce/repos","events_url":"https://api.github.com/users/unbounce/events{/privacy}","received_events_url":"https://api.github.com/users/unbounce/received_events","type":"Organization","site_admin":false},"repo":{"id":42072893,"name":"kissr","full_name":"unbounce/kissr","owner":{"login":"unbounce","id":115120,"avatar_url":"https://avatars.githubusercontent.com/u/115120?v=3","gravatar_id":"","url":"https://api.github.com/users/unbounce","html_url":"https://github.com/unbounce","followers_url":"https://api.github.com/users/unbounce/followers","following_url":"https://api.github.com/users/unbounce/following{/other_user}","gists_url":"https://api.github.com/users/unbounce/gists{/gist_id}","starred_url":"https://api.github.com/users/unbounce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unbounce/subscriptions","organizations_url":"https://api.github.com/users/unbounce/orgs","repos_url":"https://api.github.com/users/unbounce/repos","events_url":"https://api.github.com/users/unbounce/events{/privacy}","received_events_url":"https://api.github.com/users/unbounce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/unbounce/kissr","description":"Access KissMetrics reports through R","fork":false,"url":"https://api.github.com/repos/unbounce/kissr","forks_url":"https://api.github.com/repos/unbounce/kissr/forks","keys_url":"https://api.github.com/repos/unbounce/kissr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unbounce/kissr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unbounce/kissr/teams","hooks_url":"https://api.github.com/repos/unbounce/kissr/hooks","issue_events_url":"https://api.github.com/repos/unbounce/kissr/issues/events{/number}","events_url":"https://api.github.com/repos/unbounce/kissr/events","assignees_url":"https://api.github.com/repos/unbounce/kissr/assignees{/user}","branches_url":"https://api.github.com/repos/unbounce/kissr/branches{/branch}","tags_url":"https://api.github.com/repos/unbounce/kissr/tags","blobs_url":"https://api.github.com/repos/unbounce/kissr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unbounce/kissr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unbounce/kissr/git/refs{/sha}","trees_url":"https://api.github.com/repos/unbounce/kissr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unbounce/kissr/statuses/{sha}","languages_url":"https://api.github.com/repos/unbounce/kissr/languages","stargazers_url":"https://api.github.com/repos/unbounce/kissr/stargazers","contributors_url":"https://api.github.com/repos/unbounce/kissr/contributors","subscribers_url":"https://api.github.com/repos/unbounce/kissr/subscribers","subscription_url":"https://api.github.com/repos/unbounce/kissr/subscription","commits_url":"https://api.github.com/repos/unbounce/kissr/commits{/sha}","git_commits_url":"https://api.github.com/repos/unbounce/kissr/git/commits{/sha}","comments_url":"https://api.github.com/repos/unbounce/kissr/comments{/number}","issue_comment_url":"https://api.github.com/repos/unbounce/kissr/issues/comments{/number}","contents_url":"https://api.github.com/repos/unbounce/kissr/contents/{+path}","compare_url":"https://api.github.com/repos/unbounce/kissr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unbounce/kissr/merges","archive_url":"https://api.github.com/repos/unbounce/kissr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unbounce/kissr/downloads","issues_url":"https://api.github.com/repos/unbounce/kissr/issues{/number}","pulls_url":"https://api.github.com/repos/unbounce/kissr/pulls{/number}","milestones_url":"https://api.github.com/repos/unbounce/kissr/milestones{/number}","notifications_url":"https://api.github.com/repos/unbounce/kissr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unbounce/kissr/labels{/name}","releases_url":"https://api.github.com/repos/unbounce/kissr/releases{/id}","deployments_url":"https://api.github.com/repos/unbounce/kissr/deployments","created_at":"2015-09-07T20:21:23Z","updated_at":"2016-02-03T17:21:15Z","pushed_at":"2016-03-02T08:04:49Z","git_url":"git://github.com/unbounce/kissr.git","ssh_url":"git@github.com:unbounce/kissr.git","clone_url":"https://github.com/unbounce/kissr.git","svn_url":"https://github.com/unbounce/kissr","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/unbounce/kissr/pulls/7"},"html":{"href":"https://github.com/unbounce/kissr/pull/7"},"issue":{"href":"https://api.github.com/repos/unbounce/kissr/issues/7"},"comments":{"href":"https://api.github.com/repos/unbounce/kissr/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/unbounce/kissr/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/unbounce/kissr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/unbounce/kissr/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/unbounce/kissr/statuses/2440be525dcfb13c9a1987eb2f6228f461aa507a"}}}}