{"action":"closed","number":47,"pull_request":{"url":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls/47","id":67954040,"html_url":"https://github.com/alerta/angular-alerta-webui/pull/47","diff_url":"https://github.com/alerta/angular-alerta-webui/pull/47.diff","patch_url":"https://github.com/alerta/angular-alerta-webui/pull/47.patch","issue_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/47","number":47,"state":"closed","locked":false,"title":"Make dates configurable for short, medium and long formats","user":{"login":"satterly","id":615057,"avatar_url":"https://avatars.githubusercontent.com/u/615057?v=3","gravatar_id":"","url":"https://api.github.com/users/satterly","html_url":"https://github.com/satterly","followers_url":"https://api.github.com/users/satterly/followers","following_url":"https://api.github.com/users/satterly/following{/other_user}","gists_url":"https://api.github.com/users/satterly/gists{/gist_id}","starred_url":"https://api.github.com/users/satterly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satterly/subscriptions","organizations_url":"https://api.github.com/users/satterly/orgs","repos_url":"https://api.github.com/users/satterly/repos","events_url":"https://api.github.com/users/satterly/events{/privacy}","received_events_url":"https://api.github.com/users/satterly/received_events","type":"User","site_admin":false},"body":"**Defaults**\r\n```\r\nshortTime: 'HH:mm'\r\nmediumDate: 'EEE d MMM HH:mm'\r\nlongDate: 'd/M/yyyy h:mm:ss.sss a'\r\n```\r\nSee https://docs.angularjs.org/api/ng/filter/date for full list of date formats\r\n\r\n**Example**\r\n```\r\nangular.module('config', [])\r\n  .constant('config', {\r\n    'endpoint'    : \"http://\"+window.location.hostname+\":8080\",\r\n    'provider'    : \"basic\", // google, github, gitlab or basic\r\n    'dates': {\r\n      'shortTime' : 'shortTime',  // 1:39 PM\r\n      'mediumDate': 'medium', // Apr 26, 2016 1:39:44 PM\r\n      'longDate'  : 'EEEE, MMMM d, yyyy h:mm:ss.sss a (Z)'  // Tuesday, April 26, 2016 1:39:43.987 PM (+0100)\r\n    }\r\n  });\r\n```","created_at":"2016-04-26T20:37:54Z","updated_at":"2016-04-26T20:40:39Z","closed_at":"2016-04-26T20:40:39Z","merged_at":"2016-04-26T20:40:39Z","merge_commit_sha":"43f334617af4faa3a30e64b5c9693b093b35a52d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls/47/commits","review_comments_url":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls/47/comments","review_comment_url":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/47/comments","statuses_url":"https://api.github.com/repos/alerta/angular-alerta-webui/statuses/9bf0ed1673f6fe9f2492f319ae71f145b946368e","head":{"label":"alerta:configurable-dates","ref":"configurable-dates","sha":"9bf0ed1673f6fe9f2492f319ae71f145b946368e","user":{"login":"alerta","id":5067139,"avatar_url":"https://avatars.githubusercontent.com/u/5067139?v=3","gravatar_id":"","url":"https://api.github.com/users/alerta","html_url":"https://github.com/alerta","followers_url":"https://api.github.com/users/alerta/followers","following_url":"https://api.github.com/users/alerta/following{/other_user}","gists_url":"https://api.github.com/users/alerta/gists{/gist_id}","starred_url":"https://api.github.com/users/alerta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerta/subscriptions","organizations_url":"https://api.github.com/users/alerta/orgs","repos_url":"https://api.github.com/users/alerta/repos","events_url":"https://api.github.com/users/alerta/events{/privacy}","received_events_url":"https://api.github.com/users/alerta/received_events","type":"Organization","site_admin":false},"repo":{"id":18633326,"name":"angular-alerta-webui","full_name":"alerta/angular-alerta-webui","owner":{"login":"alerta","id":5067139,"avatar_url":"https://avatars.githubusercontent.com/u/5067139?v=3","gravatar_id":"","url":"https://api.github.com/users/alerta","html_url":"https://github.com/alerta","followers_url":"https://api.github.com/users/alerta/followers","following_url":"https://api.github.com/users/alerta/following{/other_user}","gists_url":"https://api.github.com/users/alerta/gists{/gist_id}","starred_url":"https://api.github.com/users/alerta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerta/subscriptions","organizations_url":"https://api.github.com/users/alerta/orgs","repos_url":"https://api.github.com/users/alerta/repos","events_url":"https://api.github.com/users/alerta/events{/privacy}","received_events_url":"https://api.github.com/users/alerta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alerta/angular-alerta-webui","description":"Alerta Web UI 3.0","fork":false,"url":"https://api.github.com/repos/alerta/angular-alerta-webui","forks_url":"https://api.github.com/repos/alerta/angular-alerta-webui/forks","keys_url":"https://api.github.com/repos/alerta/angular-alerta-webui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alerta/angular-alerta-webui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alerta/angular-alerta-webui/teams","hooks_url":"https://api.github.com/repos/alerta/angular-alerta-webui/hooks","issue_events_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/events{/number}","events_url":"https://api.github.com/repos/alerta/angular-alerta-webui/events","assignees_url":"https://api.github.com/repos/alerta/angular-alerta-webui/assignees{/user}","branches_url":"https://api.github.com/repos/alerta/angular-alerta-webui/branches{/branch}","tags_url":"https://api.github.com/repos/alerta/angular-alerta-webui/tags","blobs_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/refs{/sha}","trees_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alerta/angular-alerta-webui/statuses/{sha}","languages_url":"https://api.github.com/repos/alerta/angular-alerta-webui/languages","stargazers_url":"https://api.github.com/repos/alerta/angular-alerta-webui/stargazers","contributors_url":"https://api.github.com/repos/alerta/angular-alerta-webui/contributors","subscribers_url":"https://api.github.com/repos/alerta/angular-alerta-webui/subscribers","subscription_url":"https://api.github.com/repos/alerta/angular-alerta-webui/subscription","commits_url":"https://api.github.com/repos/alerta/angular-alerta-webui/commits{/sha}","git_commits_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/commits{/sha}","comments_url":"https://api.github.com/repos/alerta/angular-alerta-webui/comments{/number}","issue_comment_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/comments{/number}","contents_url":"https://api.github.com/repos/alerta/angular-alerta-webui/contents/{+path}","compare_url":"https://api.github.com/repos/alerta/angular-alerta-webui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alerta/angular-alerta-webui/merges","archive_url":"https://api.github.com/repos/alerta/angular-alerta-webui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alerta/angular-alerta-webui/downloads","issues_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues{/number}","pulls_url":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls{/number}","milestones_url":"https://api.github.com/repos/alerta/angular-alerta-webui/milestones{/number}","notifications_url":"https://api.github.com/repos/alerta/angular-alerta-webui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alerta/angular-alerta-webui/labels{/name}","releases_url":"https://api.github.com/repos/alerta/angular-alerta-webui/releases{/id}","deployments_url":"https://api.github.com/repos/alerta/angular-alerta-webui/deployments","created_at":"2014-04-10T11:00:31Z","updated_at":"2016-04-26T13:36:58Z","pushed_at":"2016-04-26T20:40:39Z","git_url":"git://github.com/alerta/angular-alerta-webui.git","ssh_url":"git@github.com:alerta/angular-alerta-webui.git","clone_url":"https://github.com/alerta/angular-alerta-webui.git","svn_url":"https://github.com/alerta/angular-alerta-webui","homepage":"http://try.alerta.io","size":4079,"stargazers_count":27,"watchers_count":27,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":27,"default_branch":"master"}},"base":{"label":"alerta:master","ref":"master","sha":"a2ee163e3ce2b0676478c1ff902a5331bb8f1ac3","user":{"login":"alerta","id":5067139,"avatar_url":"https://avatars.githubusercontent.com/u/5067139?v=3","gravatar_id":"","url":"https://api.github.com/users/alerta","html_url":"https://github.com/alerta","followers_url":"https://api.github.com/users/alerta/followers","following_url":"https://api.github.com/users/alerta/following{/other_user}","gists_url":"https://api.github.com/users/alerta/gists{/gist_id}","starred_url":"https://api.github.com/users/alerta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerta/subscriptions","organizations_url":"https://api.github.com/users/alerta/orgs","repos_url":"https://api.github.com/users/alerta/repos","events_url":"https://api.github.com/users/alerta/events{/privacy}","received_events_url":"https://api.github.com/users/alerta/received_events","type":"Organization","site_admin":false},"repo":{"id":18633326,"name":"angular-alerta-webui","full_name":"alerta/angular-alerta-webui","owner":{"login":"alerta","id":5067139,"avatar_url":"https://avatars.githubusercontent.com/u/5067139?v=3","gravatar_id":"","url":"https://api.github.com/users/alerta","html_url":"https://github.com/alerta","followers_url":"https://api.github.com/users/alerta/followers","following_url":"https://api.github.com/users/alerta/following{/other_user}","gists_url":"https://api.github.com/users/alerta/gists{/gist_id}","starred_url":"https://api.github.com/users/alerta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alerta/subscriptions","organizations_url":"https://api.github.com/users/alerta/orgs","repos_url":"https://api.github.com/users/alerta/repos","events_url":"https://api.github.com/users/alerta/events{/privacy}","received_events_url":"https://api.github.com/users/alerta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alerta/angular-alerta-webui","description":"Alerta Web UI 3.0","fork":false,"url":"https://api.github.com/repos/alerta/angular-alerta-webui","forks_url":"https://api.github.com/repos/alerta/angular-alerta-webui/forks","keys_url":"https://api.github.com/repos/alerta/angular-alerta-webui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alerta/angular-alerta-webui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alerta/angular-alerta-webui/teams","hooks_url":"https://api.github.com/repos/alerta/angular-alerta-webui/hooks","issue_events_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/events{/number}","events_url":"https://api.github.com/repos/alerta/angular-alerta-webui/events","assignees_url":"https://api.github.com/repos/alerta/angular-alerta-webui/assignees{/user}","branches_url":"https://api.github.com/repos/alerta/angular-alerta-webui/branches{/branch}","tags_url":"https://api.github.com/repos/alerta/angular-alerta-webui/tags","blobs_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/refs{/sha}","trees_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alerta/angular-alerta-webui/statuses/{sha}","languages_url":"https://api.github.com/repos/alerta/angular-alerta-webui/languages","stargazers_url":"https://api.github.com/repos/alerta/angular-alerta-webui/stargazers","contributors_url":"https://api.github.com/repos/alerta/angular-alerta-webui/contributors","subscribers_url":"https://api.github.com/repos/alerta/angular-alerta-webui/subscribers","subscription_url":"https://api.github.com/repos/alerta/angular-alerta-webui/subscription","commits_url":"https://api.github.com/repos/alerta/angular-alerta-webui/commits{/sha}","git_commits_url":"https://api.github.com/repos/alerta/angular-alerta-webui/git/commits{/sha}","comments_url":"https://api.github.com/repos/alerta/angular-alerta-webui/comments{/number}","issue_comment_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/comments{/number}","contents_url":"https://api.github.com/repos/alerta/angular-alerta-webui/contents/{+path}","compare_url":"https://api.github.com/repos/alerta/angular-alerta-webui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alerta/angular-alerta-webui/merges","archive_url":"https://api.github.com/repos/alerta/angular-alerta-webui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alerta/angular-alerta-webui/downloads","issues_url":"https://api.github.com/repos/alerta/angular-alerta-webui/issues{/number}","pulls_url":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls{/number}","milestones_url":"https://api.github.com/repos/alerta/angular-alerta-webui/milestones{/number}","notifications_url":"https://api.github.com/repos/alerta/angular-alerta-webui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alerta/angular-alerta-webui/labels{/name}","releases_url":"https://api.github.com/repos/alerta/angular-alerta-webui/releases{/id}","deployments_url":"https://api.github.com/repos/alerta/angular-alerta-webui/deployments","created_at":"2014-04-10T11:00:31Z","updated_at":"2016-04-26T13:36:58Z","pushed_at":"2016-04-26T20:40:39Z","git_url":"git://github.com/alerta/angular-alerta-webui.git","ssh_url":"git@github.com:alerta/angular-alerta-webui.git","clone_url":"https://github.com/alerta/angular-alerta-webui.git","svn_url":"https://github.com/alerta/angular-alerta-webui","homepage":"http://try.alerta.io","size":4079,"stargazers_count":27,"watchers_count":27,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls/47"},"html":{"href":"https://github.com/alerta/angular-alerta-webui/pull/47"},"issue":{"href":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/47"},"comments":{"href":"https://api.github.com/repos/alerta/angular-alerta-webui/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alerta/angular-alerta-webui/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/alerta/angular-alerta-webui/statuses/9bf0ed1673f6fe9f2492f319ae71f145b946368e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"satterly","id":615057,"avatar_url":"https://avatars.githubusercontent.com/u/615057?v=3","gravatar_id":"","url":"https://api.github.com/users/satterly","html_url":"https://github.com/satterly","followers_url":"https://api.github.com/users/satterly/followers","following_url":"https://api.github.com/users/satterly/following{/other_user}","gists_url":"https://api.github.com/users/satterly/gists{/gist_id}","starred_url":"https://api.github.com/users/satterly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satterly/subscriptions","organizations_url":"https://api.github.com/users/satterly/orgs","repos_url":"https://api.github.com/users/satterly/repos","events_url":"https://api.github.com/users/satterly/events{/privacy}","received_events_url":"https://api.github.com/users/satterly/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":43,"deletions":25,"changed_files":9}}