{"action":"created","issue":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/939","labels_url":"https://api.github.com/repos/YaleSTC/reservations/issues/939/labels{/name}","comments_url":"https://api.github.com/repos/YaleSTC/reservations/issues/939/comments","events_url":"https://api.github.com/repos/YaleSTC/reservations/issues/939/events","html_url":"https://github.com/YaleSTC/reservations/issues/939","id":41575706,"number":939,"title":"Fix all the dates","user":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/1+-+Ready","name":"1 - Ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/diff%3A+5","name":"diff: 5","color":"ffff55"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/pri0%3A+crit","name":"pri0: crit","color":"ff0000"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/type%3A+bug","name":"type: bug","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/YaleSTC/reservations/milestones/28","labels_url":"https://api.github.com/repos/YaleSTC/reservations/milestones/28/labels","id":920805,"number":28,"title":"5.1.0","description":"First and only sprint of Spring 2015. Minor update to v5.0.0 before wider export including final features and polish.","creator":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"open_issues":31,"closed_issues":0,"state":"open","created_at":"2015-01-04T05:06:54Z","updated_at":"2015-01-15T04:56:09Z","due_on":"2015-02-08T05:00:00Z","closed_at":null},"comments":9,"created_at":"2014-08-31T01:19:08Z","updated_at":"2015-01-15T06:00:12Z","closed_at":null,"body":"We've had numerous issues where date comparisons were not being handled properly due to the different classes they can take (see #932 and a bunch of others). We should do a complete review of the code (validations and scopes particularly) and make sure they we're always using `to_date` where necessary.\r\n\r\n<!---\r\n@huboard:{\"order\":0.15234375,\"milestone_order\":939,\"custom_state\":\"\"}\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/comments/70043407","html_url":"https://github.com/YaleSTC/reservations/issues/939#issuecomment-70043407","issue_url":"https://api.github.com/repos/YaleSTC/reservations/issues/939","id":70043407,"user":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T06:00:12Z","updated_at":"2015-01-15T06:00:12Z","body":"I've undone my changes in the #275 branch but the above fix broke one of our tests. Frankly, maybe we should change our reservation scopes so they don't use `Date.current.to_time` and instead use `DateTime.current`?"}}