{"action":"created","issue":{"url":"https://api.github.com/repos/calagator/calagator/issues/428","labels_url":"https://api.github.com/repos/calagator/calagator/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/calagator/calagator/issues/428/comments","events_url":"https://api.github.com/repos/calagator/calagator/issues/428/events","html_url":"https://github.com/calagator/calagator/pull/428","id":89910012,"number":428,"title":"Fixing use cases where end date or time are not set","user":{"login":"sipple","id":70801,"avatar_url":"https://avatars.githubusercontent.com/u/70801?v=3","gravatar_id":"","url":"https://api.github.com/users/sipple","html_url":"https://github.com/sipple","followers_url":"https://api.github.com/users/sipple/followers","following_url":"https://api.github.com/users/sipple/following{/other_user}","gists_url":"https://api.github.com/users/sipple/gists{/gist_id}","starred_url":"https://api.github.com/users/sipple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sipple/subscriptions","organizations_url":"https://api.github.com/users/sipple/orgs","repos_url":"https://api.github.com/users/sipple/repos","events_url":"https://api.github.com/users/sipple/events{/privacy}","received_events_url":"https://api.github.com/users/sipple/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-21T13:13:40Z","updated_at":"2015-06-24T21:30:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/calagator/calagator/pulls/428","html_url":"https://github.com/calagator/calagator/pull/428","diff_url":"https://github.com/calagator/calagator/pull/428.diff","patch_url":"https://github.com/calagator/calagator/pull/428.patch"},"body":"This addresses issue #16. \r\n\r\n* For new events, neither start_date/time nor end_date/time will be pre-populated.\r\n* When start_date is set, end_date will be set accordingly even if blank.\r\n* When start_Time is set, end_time will be set accordingly even if blank.\r\n* In cases where there had not been an end_time set, a default duration of an hour is used to populate end_time.\r\n* As start/end are not pre-populated in the view, the to_date and strftime calls would error when either values were blank. To fix, those formatting calls were moved into helpers that only run to_date and strftime when those values are set, and return an empty string if not.\r\n\r\n(This request also adds the .idea/ project folder to the .gitignore file for Rubymine users like me. I hope that wasn't presumptuous of me.)"},"comment":{"url":"https://api.github.com/repos/calagator/calagator/issues/comments/115018039","html_url":"https://github.com/calagator/calagator/pull/428#issuecomment-115018039","issue_url":"https://api.github.com/repos/calagator/calagator/issues/428","id":115018039,"user":{"login":"shawnacscott","id":1648967,"avatar_url":"https://avatars.githubusercontent.com/u/1648967?v=3","gravatar_id":"","url":"https://api.github.com/users/shawnacscott","html_url":"https://github.com/shawnacscott","followers_url":"https://api.github.com/users/shawnacscott/followers","following_url":"https://api.github.com/users/shawnacscott/following{/other_user}","gists_url":"https://api.github.com/users/shawnacscott/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnacscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnacscott/subscriptions","organizations_url":"https://api.github.com/users/shawnacscott/orgs","repos_url":"https://api.github.com/users/shawnacscott/repos","events_url":"https://api.github.com/users/shawnacscott/events{/privacy}","received_events_url":"https://api.github.com/users/shawnacscott/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T21:30:12Z","updated_at":"2015-06-24T21:30:12Z","body":"Sorry for the confusion, I mean that any time an existing event has an end time cleared during editing it refuses to save."}}