{"action":"created","comment":{"url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments/90184791","pull_request_review_id":10706194,"id":90184791,"diff_hunk":"@@ -0,0 +1,94 @@\n+(function () {\n+'use strict';\n+\n+  angular\n+    .module('porttare.controllers')\n+    .controller('OfficeController', OfficeController);\n+\n+  function OfficeController(OfficesService,\n+                            ModalService,\n+                            $ionicLoading,\n+                            $ionicPopup,\n+                            $scope,\n+                            $localStorage,\n+                            MapsService) {\n+\n+    var officesVm = this;\n+    officesVm.showEditOffice = showEditOffice;\n+    officesVm.showDeleteOffice = showDeleteOffice;\n+    officesVm.closeModal = closeModal;\n+    officesVm.submitOffice = submitOffice;\n+    officesVm.submitOfficeDelete = submitOfficeDelete;\n+    initOffice($localStorage.getObject('office'));\n+\n+    function initOffice(office){\n+      officesVm.officeDetail = office;\n+      convertStringToDate();\n+      MapsService.loadGMap().then(function(){\n+        MapsService.loadGMapAddress(officesVm.officeDetail.direccion);\n+      });\n+    }\n+\n+\n+    function convertStringToDate(){\n+      var date = moment(new Date()).format('YYYY/MM/DD');\n+      var hora_de_apertura= date +' '+ officesVm.officeDetail.hora_de_apertura; //jshint ignore:line\n+      var hora_de_cierre= date +' '+ officesVm.officeDetail.hora_de_cierre; //jshint ignore:line\n+      officesVm.officeDetail.hora_de_apertura = new Date(hora_de_apertura); //jshint ignore:line\n+      officesVm.officeDetail.hora_de_cierre = new Date(hora_de_cierre); //jshint ignore:line","path":"app/scripts/controllers/office-controller.js","position":38,"original_position":38,"commit_id":"74124097460a2f2f375f0ee5efab8906bc0bbb1a","original_commit_id":"74124097460a2f2f375f0ee5efab8906bc0bbb1a","user":{"login":"fabricioflores","id":3495122,"avatar_url":"https://avatars.githubusercontent.com/u/3495122?v=3","gravatar_id":"","url":"https://api.github.com/users/fabricioflores","html_url":"https://github.com/fabricioflores","followers_url":"https://api.github.com/users/fabricioflores/followers","following_url":"https://api.github.com/users/fabricioflores/following{/other_user}","gists_url":"https://api.github.com/users/fabricioflores/gists{/gist_id}","starred_url":"https://api.github.com/users/fabricioflores/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabricioflores/subscriptions","organizations_url":"https://api.github.com/users/fabricioflores/orgs","repos_url":"https://api.github.com/users/fabricioflores/repos","events_url":"https://api.github.com/users/fabricioflores/events{/privacy}","received_events_url":"https://api.github.com/users/fabricioflores/received_events","type":"User","site_admin":false},"body":"no sé si puedes usar moment para crear la hora. moment tiene mucha documentación al respecto y sinceramente si preferiría usar moment en lugar de Date.http://momentjs.com/docs/","created_at":"2016-11-30T08:11:28Z","updated_at":"2016-11-30T08:11:28Z","html_url":"https://github.com/noggalito/porttare-frontend/pull/80#discussion_r90184791","pull_request_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments/90184791"},"html":{"href":"https://github.com/noggalito/porttare-frontend/pull/80#discussion_r90184791"},"pull_request":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/80","id":94291852,"html_url":"https://github.com/noggalito/porttare-frontend/pull/80","diff_url":"https://github.com/noggalito/porttare-frontend/pull/80.diff","patch_url":"https://github.com/noggalito/porttare-frontend/pull/80.patch","issue_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/80","number":80,"state":"open","locked":false,"title":"Establishment in progress","user":{"login":"lglopezf","id":16541579,"avatar_url":"https://avatars.githubusercontent.com/u/16541579?v=3","gravatar_id":"","url":"https://api.github.com/users/lglopezf","html_url":"https://github.com/lglopezf","followers_url":"https://api.github.com/users/lglopezf/followers","following_url":"https://api.github.com/users/lglopezf/following{/other_user}","gists_url":"https://api.github.com/users/lglopezf/gists{/gist_id}","starred_url":"https://api.github.com/users/lglopezf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lglopezf/subscriptions","organizations_url":"https://api.github.com/users/lglopezf/orgs","repos_url":"https://api.github.com/users/lglopezf/repos","events_url":"https://api.github.com/users/lglopezf/events{/privacy}","received_events_url":"https://api.github.com/users/lglopezf/received_events","type":"User","site_admin":false},"body":"Se esta desarrollando el listar, crear, editar y desactivar los establecimientos. Toda estas funciones entan en progreso.","created_at":"2016-11-18T02:25:39Z","updated_at":"2016-11-30T08:11:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81e457c6dc90c33cc21461bb411353f50c493c2e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/80/commits","review_comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/80/comments","review_comment_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/80/comments","statuses_url":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/74124097460a2f2f375f0ee5efab8906bc0bbb1a","head":{"label":"noggalito:establishment-in-progress","ref":"establishment-in-progress","sha":"74124097460a2f2f375f0ee5efab8906bc0bbb1a","user":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"repo":{"id":59975703,"name":"porttare-frontend","full_name":"noggalito/porttare-frontend","owner":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/noggalito/porttare-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/noggalito/porttare-frontend","forks_url":"https://api.github.com/repos/noggalito/porttare-frontend/forks","keys_url":"https://api.github.com/repos/noggalito/porttare-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noggalito/porttare-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noggalito/porttare-frontend/teams","hooks_url":"https://api.github.com/repos/noggalito/porttare-frontend/hooks","issue_events_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/noggalito/porttare-frontend/events","assignees_url":"https://api.github.com/repos/noggalito/porttare-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/noggalito/porttare-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/tags","blobs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/noggalito/porttare-frontend/languages","stargazers_url":"https://api.github.com/repos/noggalito/porttare-frontend/stargazers","contributors_url":"https://api.github.com/repos/noggalito/porttare-frontend/contributors","subscribers_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscribers","subscription_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscription","commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/noggalito/porttare-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/noggalito/porttare-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noggalito/porttare-frontend/merges","archive_url":"https://api.github.com/repos/noggalito/porttare-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noggalito/porttare-frontend/downloads","issues_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/noggalito/porttare-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/noggalito/porttare-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noggalito/porttare-frontend/labels{/name}","releases_url":"https://api.github.com/repos/noggalito/porttare-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/noggalito/porttare-frontend/deployments","created_at":"2016-05-30T02:45:09Z","updated_at":"2016-10-27T11:12:35Z","pushed_at":"2016-11-30T08:08:22Z","git_url":"git://github.com/noggalito/porttare-frontend.git","ssh_url":"git@github.com:noggalito/porttare-frontend.git","clone_url":"https://github.com/noggalito/porttare-frontend.git","svn_url":"https://github.com/noggalito/porttare-frontend","homepage":"https://porttare-frontend.herokuapp.com/","size":3074,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"noggalito:master","ref":"master","sha":"c44923cb0a4e3953ee8ff0eb77b6dda632f3144c","user":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"repo":{"id":59975703,"name":"porttare-frontend","full_name":"noggalito/porttare-frontend","owner":{"login":"noggalito","id":13799443,"avatar_url":"https://avatars.githubusercontent.com/u/13799443?v=3","gravatar_id":"","url":"https://api.github.com/users/noggalito","html_url":"https://github.com/noggalito","followers_url":"https://api.github.com/users/noggalito/followers","following_url":"https://api.github.com/users/noggalito/following{/other_user}","gists_url":"https://api.github.com/users/noggalito/gists{/gist_id}","starred_url":"https://api.github.com/users/noggalito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noggalito/subscriptions","organizations_url":"https://api.github.com/users/noggalito/orgs","repos_url":"https://api.github.com/users/noggalito/repos","events_url":"https://api.github.com/users/noggalito/events{/privacy}","received_events_url":"https://api.github.com/users/noggalito/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/noggalito/porttare-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/noggalito/porttare-frontend","forks_url":"https://api.github.com/repos/noggalito/porttare-frontend/forks","keys_url":"https://api.github.com/repos/noggalito/porttare-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noggalito/porttare-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noggalito/porttare-frontend/teams","hooks_url":"https://api.github.com/repos/noggalito/porttare-frontend/hooks","issue_events_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/noggalito/porttare-frontend/events","assignees_url":"https://api.github.com/repos/noggalito/porttare-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/noggalito/porttare-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/tags","blobs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/noggalito/porttare-frontend/languages","stargazers_url":"https://api.github.com/repos/noggalito/porttare-frontend/stargazers","contributors_url":"https://api.github.com/repos/noggalito/porttare-frontend/contributors","subscribers_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscribers","subscription_url":"https://api.github.com/repos/noggalito/porttare-frontend/subscription","commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/noggalito/porttare-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/noggalito/porttare-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/noggalito/porttare-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/noggalito/porttare-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noggalito/porttare-frontend/merges","archive_url":"https://api.github.com/repos/noggalito/porttare-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noggalito/porttare-frontend/downloads","issues_url":"https://api.github.com/repos/noggalito/porttare-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/noggalito/porttare-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/noggalito/porttare-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/noggalito/porttare-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noggalito/porttare-frontend/labels{/name}","releases_url":"https://api.github.com/repos/noggalito/porttare-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/noggalito/porttare-frontend/deployments","created_at":"2016-05-30T02:45:09Z","updated_at":"2016-10-27T11:12:35Z","pushed_at":"2016-11-30T08:08:22Z","git_url":"git://github.com/noggalito/porttare-frontend.git","ssh_url":"git@github.com:noggalito/porttare-frontend.git","clone_url":"https://github.com/noggalito/porttare-frontend.git","svn_url":"https://github.com/noggalito/porttare-frontend","homepage":"https://porttare-frontend.herokuapp.com/","size":3074,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":10,"forks":1,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/80"},"html":{"href":"https://github.com/noggalito/porttare-frontend/pull/80"},"issue":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/issues/80"},"comments":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/noggalito/porttare-frontend/statuses/74124097460a2f2f375f0ee5efab8906bc0bbb1a"}}}}
{"actor":{"display_login":"fabricioflores"}}