{"action":"opened","number":68,"pull_request":{"url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls/68","id":205795896,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1Nzk1ODk2","html_url":"https://github.com/azavea/district-builder-dtl-pa/pull/68","diff_url":"https://github.com/azavea/district-builder-dtl-pa/pull/68.diff","patch_url":"https://github.com/azavea/district-builder-dtl-pa/pull/68.patch","issue_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues/68","number":68,"state":"open","locked":false,"title":"Fix timestamp bugs","user":{"login":"shreshthkhilani","id":3959096,"node_id":"MDQ6VXNlcjM5NTkwOTY=","avatar_url":"https://avatars0.githubusercontent.com/u/3959096?v=4","gravatar_id":"","url":"https://api.github.com/users/shreshthkhilani","html_url":"https://github.com/shreshthkhilani","followers_url":"https://api.github.com/users/shreshthkhilani/followers","following_url":"https://api.github.com/users/shreshthkhilani/following{/other_user}","gists_url":"https://api.github.com/users/shreshthkhilani/gists{/gist_id}","starred_url":"https://api.github.com/users/shreshthkhilani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shreshthkhilani/subscriptions","organizations_url":"https://api.github.com/users/shreshthkhilani/orgs","repos_url":"https://api.github.com/users/shreshthkhilani/repos","events_url":"https://api.github.com/users/shreshthkhilani/events{/privacy}","received_events_url":"https://api.github.com/users/shreshthkhilani/received_events","type":"User","site_admin":false},"body":"## Overview\r\n\r\nThe timestamp on the bottom of the Draw page was showing what appeared to be PT instead of ET. This fix makes sure it shows the local time of the server, which will be ET or EST as needed. This also makes a fix to update the timestamp when a new district is created. Currently, the timestamp is only updated when a geounit is reassigned to an existing district. \r\n\r\n### Checklist\r\n\r\n- [ ] PR has a name that won't get you publicly shamed for vagueness\r\n- [ ] Files changed in the PR have been `yapf`-ed for style violations\r\n\r\n## Testing Instructions\r\n\r\n * Create a new map (from a template, say) and find yourself in the Draw tab. \r\n * Look at the timestamp. It should be the created time in Eastern.\r\n * Wait till the minute changes. \r\n * Assign a geounit to an existing district. Verify that the timestamp updates.\r\n * Refresh and verify the time still persists. \r\n * Wait till the minute changes. \r\n * Assign a geounit to a brand new district (to do this you might have to assign all geounits of a district to another one entirely so that district vanishes). Verify that the timestamp updates.\r\n\r\nCloses #159309096\r\n","created_at":"2018-08-02T16:40:54Z","updated_at":"2018-08-02T16:40:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls/68/commits","review_comments_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls/68/comments","review_comment_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues/68/comments","statuses_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/statuses/e8093cd652dbb14356af49eac22482884c2386d8","head":{"label":"azavea:bugfix/sk/fix-timestamp","ref":"bugfix/sk/fix-timestamp","sha":"e8093cd652dbb14356af49eac22482884c2386d8","user":{"login":"azavea","id":595231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NTIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/595231?v=4","gravatar_id":"","url":"https://api.github.com/users/azavea","html_url":"https://github.com/azavea","followers_url":"https://api.github.com/users/azavea/followers","following_url":"https://api.github.com/users/azavea/following{/other_user}","gists_url":"https://api.github.com/users/azavea/gists{/gist_id}","starred_url":"https://api.github.com/users/azavea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azavea/subscriptions","organizations_url":"https://api.github.com/users/azavea/orgs","repos_url":"https://api.github.com/users/azavea/repos","events_url":"https://api.github.com/users/azavea/events{/privacy}","received_events_url":"https://api.github.com/users/azavea/received_events","type":"Organization","site_admin":false},"repo":{"id":124141335,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQxNDEzMzU=","name":"district-builder-dtl-pa","full_name":"azavea/district-builder-dtl-pa","owner":{"login":"azavea","id":595231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NTIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/595231?v=4","gravatar_id":"","url":"https://api.github.com/users/azavea","html_url":"https://github.com/azavea","followers_url":"https://api.github.com/users/azavea/followers","following_url":"https://api.github.com/users/azavea/following{/other_user}","gists_url":"https://api.github.com/users/azavea/gists{/gist_id}","starred_url":"https://api.github.com/users/azavea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azavea/subscriptions","organizations_url":"https://api.github.com/users/azavea/orgs","repos_url":"https://api.github.com/users/azavea/repos","events_url":"https://api.github.com/users/azavea/events{/privacy}","received_events_url":"https://api.github.com/users/azavea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azavea/district-builder-dtl-pa","description":"DistrictBuilder is web-based, open source software for collaborative redistricting.","fork":true,"url":"https://api.github.com/repos/azavea/district-builder-dtl-pa","forks_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/forks","keys_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/teams","hooks_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/hooks","issue_events_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues/events{/number}","events_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/events","assignees_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/assignees{/user}","branches_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/branches{/branch}","tags_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/tags","blobs_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/refs{/sha}","trees_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/statuses/{sha}","languages_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/languages","stargazers_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/stargazers","contributors_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/contributors","subscribers_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/subscribers","subscription_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/subscription","commits_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/commits{/sha}","git_commits_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/commits{/sha}","comments_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/comments{/number}","issue_comment_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues/comments{/number}","contents_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/contents/{+path}","compare_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/merges","archive_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/downloads","issues_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues{/number}","pulls_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls{/number}","milestones_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/milestones{/number}","notifications_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/labels{/name}","releases_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/releases{/id}","deployments_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/deployments","created_at":"2018-03-06T21:33:19Z","updated_at":"2018-08-02T15:19:33Z","pushed_at":"2018-08-02T16:38:05Z","git_url":"git://github.com/azavea/district-builder-dtl-pa.git","ssh_url":"git@github.com:azavea/district-builder-dtl-pa.git","clone_url":"https://github.com/azavea/district-builder-dtl-pa.git","svn_url":"https://github.com/azavea/district-builder-dtl-pa","homepage":"http://www.districtbuilder.org/","size":408165,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"azavea:develop","ref":"develop","sha":"b1b793e97ce5af6529f5b586104a853764e32fa2","user":{"login":"azavea","id":595231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NTIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/595231?v=4","gravatar_id":"","url":"https://api.github.com/users/azavea","html_url":"https://github.com/azavea","followers_url":"https://api.github.com/users/azavea/followers","following_url":"https://api.github.com/users/azavea/following{/other_user}","gists_url":"https://api.github.com/users/azavea/gists{/gist_id}","starred_url":"https://api.github.com/users/azavea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azavea/subscriptions","organizations_url":"https://api.github.com/users/azavea/orgs","repos_url":"https://api.github.com/users/azavea/repos","events_url":"https://api.github.com/users/azavea/events{/privacy}","received_events_url":"https://api.github.com/users/azavea/received_events","type":"Organization","site_admin":false},"repo":{"id":124141335,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQxNDEzMzU=","name":"district-builder-dtl-pa","full_name":"azavea/district-builder-dtl-pa","owner":{"login":"azavea","id":595231,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NTIzMQ==","avatar_url":"https://avatars3.githubusercontent.com/u/595231?v=4","gravatar_id":"","url":"https://api.github.com/users/azavea","html_url":"https://github.com/azavea","followers_url":"https://api.github.com/users/azavea/followers","following_url":"https://api.github.com/users/azavea/following{/other_user}","gists_url":"https://api.github.com/users/azavea/gists{/gist_id}","starred_url":"https://api.github.com/users/azavea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azavea/subscriptions","organizations_url":"https://api.github.com/users/azavea/orgs","repos_url":"https://api.github.com/users/azavea/repos","events_url":"https://api.github.com/users/azavea/events{/privacy}","received_events_url":"https://api.github.com/users/azavea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/azavea/district-builder-dtl-pa","description":"DistrictBuilder is web-based, open source software for collaborative redistricting.","fork":true,"url":"https://api.github.com/repos/azavea/district-builder-dtl-pa","forks_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/forks","keys_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/teams","hooks_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/hooks","issue_events_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues/events{/number}","events_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/events","assignees_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/assignees{/user}","branches_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/branches{/branch}","tags_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/tags","blobs_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/refs{/sha}","trees_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/statuses/{sha}","languages_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/languages","stargazers_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/stargazers","contributors_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/contributors","subscribers_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/subscribers","subscription_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/subscription","commits_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/commits{/sha}","git_commits_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/git/commits{/sha}","comments_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/comments{/number}","issue_comment_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues/comments{/number}","contents_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/contents/{+path}","compare_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/merges","archive_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/downloads","issues_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues{/number}","pulls_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls{/number}","milestones_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/milestones{/number}","notifications_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/labels{/name}","releases_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/releases{/id}","deployments_url":"https://api.github.com/repos/azavea/district-builder-dtl-pa/deployments","created_at":"2018-03-06T21:33:19Z","updated_at":"2018-08-02T15:19:33Z","pushed_at":"2018-08-02T16:38:05Z","git_url":"git://github.com/azavea/district-builder-dtl-pa.git","ssh_url":"git@github.com:azavea/district-builder-dtl-pa.git","clone_url":"https://github.com/azavea/district-builder-dtl-pa.git","svn_url":"https://github.com/azavea/district-builder-dtl-pa","homepage":"http://www.districtbuilder.org/","size":408165,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls/68"},"html":{"href":"https://github.com/azavea/district-builder-dtl-pa/pull/68"},"issue":{"href":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues/68"},"comments":{"href":"https://api.github.com/repos/azavea/district-builder-dtl-pa/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/azavea/district-builder-dtl-pa/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/azavea/district-builder-dtl-pa/statuses/e8093cd652dbb14356af49eac22482884c2386d8"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":3,"deletions":3,"changed_files":2}}
{"actor":{"display_login":"shreshthkhilani"}}