{"action":"created","issue":{"url":"https://api.github.com/repos/NottingHack/hms/issues/82","labels_url":"https://api.github.com/repos/NottingHack/hms/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/NottingHack/hms/issues/82/comments","events_url":"https://api.github.com/repos/NottingHack/hms/issues/82/events","html_url":"https://github.com/NottingHack/hms/issues/82","id":63779332,"number":82,"title":"Tool Bookings showing 1hr out on calendar","user":{"login":"jamesfowkes","id":1223959,"avatar_url":"https://avatars.githubusercontent.com/u/1223959?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesfowkes","html_url":"https://github.com/jamesfowkes","followers_url":"https://api.github.com/users/jamesfowkes/followers","following_url":"https://api.github.com/users/jamesfowkes/following{/other_user}","gists_url":"https://api.github.com/users/jamesfowkes/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesfowkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesfowkes/subscriptions","organizations_url":"https://api.github.com/users/jamesfowkes/orgs","repos_url":"https://api.github.com/users/jamesfowkes/repos","events_url":"https://api.github.com/users/jamesfowkes/events{/privacy}","received_events_url":"https://api.github.com/users/jamesfowkes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NottingHack/hms/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/NottingHack/hms/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"dpslwk","id":234460,"avatar_url":"https://avatars.githubusercontent.com/u/234460?v=3","gravatar_id":"","url":"https://api.github.com/users/dpslwk","html_url":"https://github.com/dpslwk","followers_url":"https://api.github.com/users/dpslwk/followers","following_url":"https://api.github.com/users/dpslwk/following{/other_user}","gists_url":"https://api.github.com/users/dpslwk/gists{/gist_id}","starred_url":"https://api.github.com/users/dpslwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpslwk/subscriptions","organizations_url":"https://api.github.com/users/dpslwk/orgs","repos_url":"https://api.github.com/users/dpslwk/repos","events_url":"https://api.github.com/users/dpslwk/events{/privacy}","received_events_url":"https://api.github.com/users/dpslwk/received_events","type":"User","site_admin":false},"milestone":null,"comments":36,"created_at":"2015-03-23T17:15:36Z","updated_at":"2015-03-23T23:13:49Z","closed_at":null,"body":"When adding a booking to the laser, said booking is displaying +1hr later than booked time on main calendar view.\r\nUnder List/Cancel bookings, correct time is shown."},"comment":{"url":"https://api.github.com/repos/NottingHack/hms/issues/comments/85243322","html_url":"https://github.com/NottingHack/hms/issues/82#issuecomment-85243322","issue_url":"https://api.github.com/repos/NottingHack/hms/issues/82","id":85243322,"user":{"login":"dpslwk","id":234460,"avatar_url":"https://avatars.githubusercontent.com/u/234460?v=3","gravatar_id":"","url":"https://api.github.com/users/dpslwk","html_url":"https://github.com/dpslwk","followers_url":"https://api.github.com/users/dpslwk/followers","following_url":"https://api.github.com/users/dpslwk/following{/other_user}","gists_url":"https://api.github.com/users/dpslwk/gists{/gist_id}","starred_url":"https://api.github.com/users/dpslwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpslwk/subscriptions","organizations_url":"https://api.github.com/users/dpslwk/orgs","repos_url":"https://api.github.com/users/dpslwk/repos","events_url":"https://api.github.com/users/dpslwk/events{/privacy}","received_events_url":"https://api.github.com/users/dpslwk/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T23:13:49Z","updated_at":"2015-03-23T23:13:49Z","body":"Right now I’m thinking the whole previous and next things could be done so much cleaner \n\nWe should just pass \n\n    view/1?week=+1\n\nor \n\n    view/1?week=-2\n\npass $currentWeek to the view so it can calculate the links with out any date math\n\nand have the controller work out the $monday from that using the _getMonday() function with add sub number of weeks and possible UTC work around in there\n\nalso means we sanitise the calendar request so it always starts a midnight, as this currently works and just screws up all sorts\n\n    https://lspace.nottinghack.org.uk/hms/tools/view/1?mon=2015-03-23T12%3A00%3A00%2B01%3A00\n\nThoughts?\n\n\n'RepRap' Matt\n\n> On 23 Mar 2015, at 23:06, Pyroka <notifications@github.com> wrote:\n> \n> I wonder if sub 'P7D' works if you convert the time to UTC before and back after\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/NottingHack/hms/issues/82#issuecomment-85241581>.\n> \n\n"}}