{"action":"opened","issue":{"url":"https://api.github.com/repos/dfhoughton/JobLog/issues/3","labels_url":"https://api.github.com/repos/dfhoughton/JobLog/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/dfhoughton/JobLog/issues/3/comments","events_url":"https://api.github.com/repos/dfhoughton/JobLog/issues/3/events","html_url":"https://github.com/dfhoughton/JobLog/issues/3","id":101752967,"number":3,"title":"Error when asking \"when\", time is in past, and current task is open","user":{"login":"dfhoughton","id":177421,"avatar_url":"https://avatars.githubusercontent.com/u/177421?v=3","gravatar_id":"","url":"https://api.github.com/users/dfhoughton","html_url":"https://github.com/dfhoughton","followers_url":"https://api.github.com/users/dfhoughton/followers","following_url":"https://api.github.com/users/dfhoughton/following{/other_user}","gists_url":"https://api.github.com/users/dfhoughton/gists{/gist_id}","starred_url":"https://api.github.com/users/dfhoughton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfhoughton/subscriptions","organizations_url":"https://api.github.com/users/dfhoughton/orgs","repos_url":"https://api.github.com/users/dfhoughton/repos","events_url":"https://api.github.com/users/dfhoughton/events{/privacy}","received_events_url":"https://api.github.com/users/dfhoughton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-18T21:29:42Z","updated_at":"2015-08-18T21:29:42Z","closed_at":null,"body":"Got this:\r\n\r\n```\r\ngresb-reports (issues/1347-everyone_should_see_new_aspects=) $ job w pp\r\nCan't call method \"add\" on an undefined value at /Users/houghton/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/App/JobLog/Command/when.pm line 94.\r\n```\r\n\r\nWhich concerns this:\r\n\r\n```perl\r\n        if ( $then < now ) {\r\n            $then = $days->[-1]->last_event->end->add( seconds => $remaining );\r\n            say \"\\nyou were finished at \" . $then->strftime($format);\r\n        }\r\n```"}}