{"action":"created","issue":{"url":"https://api.github.com/repos/geier/khal/issues/222","labels_url":"https://api.github.com/repos/geier/khal/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/geier/khal/issues/222/comments","events_url":"https://api.github.com/repos/geier/khal/issues/222/events","html_url":"https://github.com/geier/khal/issues/222","id":94588424,"number":222,"title":"ikhal crashes when translating event TZs across date boundaries","user":{"login":"plega","id":13302755,"avatar_url":"https://avatars.githubusercontent.com/u/13302755?v=3","gravatar_id":"","url":"https://api.github.com/users/plega","html_url":"https://github.com/plega","followers_url":"https://api.github.com/users/plega/followers","following_url":"https://api.github.com/users/plega/following{/other_user}","gists_url":"https://api.github.com/users/plega/gists{/gist_id}","starred_url":"https://api.github.com/users/plega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plega/subscriptions","organizations_url":"https://api.github.com/users/plega/orgs","repos_url":"https://api.github.com/users/plega/repos","events_url":"https://api.github.com/users/plega/events{/privacy}","received_events_url":"https://api.github.com/users/plega/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geier/khal/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-12T18:19:25Z","updated_at":"2015-07-13T13:05:26Z","closed_at":null,"body":"First, congratulations on khal, a great application.\r\n\r\nNow, the bug.  I created the following event:\r\n\r\nBEGIN:VCALENDAR\r\nPRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN\r\nVERSION:2.0\r\nBEGIN:VTIMEZONE\r\nTZID:Europe/London\r\nBEGIN:DAYLIGHT\r\nTZOFFSETFROM:+0000\r\nTZOFFSETTO:+0100\r\nTZNAME:BST\r\nDTSTART:19700329T010000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nTZOFFSETFROM:+0100\r\nTZOFFSETTO:+0000\r\nTZNAME:GMT\r\nDTSTART:19701025T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU\r\nEND:STANDARD\r\nEND:VTIMEZONE\r\nBEGIN:VEVENT\r\nCREATED:20150701T095323Z\r\nLAST-MODIFIED:20150706T105425Z\r\nDTSTAMP:20150706T105425Z\r\nUID:5507-5593B880-1-15FFE820\r\nSUMMARY:airport transfer :: LHR t5 - home [plega]\r\nORGANIZER;CN=[...]com\r\nATTENDEE;PARTSTAT=ACCEPTED;RECEIVED-SEQUENCE=1;ROLE=REQ-PARTICIPANT;RECEIVE\r\n D-DTSTAMP=20150701T095323Z;CN=plega:mailto:[...]\r\nDTSTART;TZID=Europe/London:20150710T180500\r\nDTEND;TZID=Europe/London:20150710T200000\r\nLOCATION:[...]\r\nCLASS:PUBLIC\r\nTRANSP:OPAQUE\r\nSEQUENCE:1\r\nX-MOZ-GENERATION:1\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n\r\nThis displays correctly in ikhal when \"local_timezone = Europe/London\".  However, if I set \"local_timezone = Australia/Sydney\" it crashes.  From testing it, I believe (though I haven't tested it exhaustively) that this will happen with any value for local_timezone which results in the above event being split across two days.\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/ui/__init__.py\", line 653, in start_pane\r\n    loop.run()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 273, in run\r\n    self.screen.run_wrapper(self._run)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/raw_display.py\", line 267, in run_wrapper\r\n    return fn()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 338, in _run\r\n    self.event_loop.run()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 668, in run\r\n    self._loop()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 705, in _loop\r\n    self._watch_files[fd]()\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 389, in _update\r\n    self.process_input(keys)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/main_loop.py\", line 489, in process_input\r\n    k = self._topmost_widget.keypress(self.screen_size, k)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/wimp.py\", line 642, in keypress\r\n    return self._current_widget.keypress(size, key)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/container.py\", line 1123, in keypress\r\n    return self.body.keypress( (maxcol, remaining), key )\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/ui/base.py\", line 32, in keypress\r\n    return urwid.Columns.keypress(self, size, key)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/container.py\", line 2264, in keypress\r\n    key = w.keypress((mc,) + size[1:], key)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/container.py\", line 1123, in keypress\r\n    return self.body.keypress( (maxcol, remaining), key )\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/ui/calendarwidget.py\", line 174, in keypress\r\n    return super(CListBox, self).keypress(size, key)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/listbox.py\", line 986, in keypress\r\n    key = focus_widget.keypress((maxcol,),key)\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/ui/calendarwidget.py\", line 127, in keypress\r\n    key = super(DateCColumns, self).keypress(size, key)\r\n  File \"/usr/lib64/python2.7/site-packages/urwid/container.py\", line 2278, in keypress\r\n    self.focus_position = j\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/ui/calendarwidget.py\", line 97, in _set_focus_position\r\n    self.on_date_change(self.contents[position][0].original_widget.date)\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/ui/__init__.py\", line 629, in show_date\r\n    self.eventscolumn.current_date = date\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/ui/__init__.py\", line 221, in current_date\r\n    self.eventcount = self.events.update(date)\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/ui/__init__.py\", line 163, in update\r\n    eventcolumn=self.eventcolumn),\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/ui/__init__.py\", line 62, in __init__\r\n    super(U_Event, self).__init__(self.event.compact(self.this_date))\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/khalendar/event.py\", line 295, in compact\r\n    rstring = self._compact_datetime(day)\r\n  File \"/usr/lib/python2.7/site-packages/khal-0.5.0-py2.7.egg/khal/khalendar/event.py\", line 333, in _compact_datetime\r\n    'please supply a `day` this event is scheduled on')\r\nValueError: (u'Something went wrong while displaying \"5507-5593B880-1-15FFE820.ics\"', u'please supply a `day` this event is scheduled on')\r\n"},"comment":{"url":"https://api.github.com/repos/geier/khal/issues/comments/120921920","html_url":"https://github.com/geier/khal/issues/222#issuecomment-120921920","issue_url":"https://api.github.com/repos/geier/khal/issues/222","id":120921920,"user":{"login":"plega","id":13302755,"avatar_url":"https://avatars.githubusercontent.com/u/13302755?v=3","gravatar_id":"","url":"https://api.github.com/users/plega","html_url":"https://github.com/plega","followers_url":"https://api.github.com/users/plega/followers","following_url":"https://api.github.com/users/plega/following{/other_user}","gists_url":"https://api.github.com/users/plega/gists{/gist_id}","starred_url":"https://api.github.com/users/plega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plega/subscriptions","organizations_url":"https://api.github.com/users/plega/orgs","repos_url":"https://api.github.com/users/plega/repos","events_url":"https://api.github.com/users/plega/events{/privacy}","received_events_url":"https://api.github.com/users/plega/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T13:05:26Z","updated_at":"2015-07-13T13:05:26Z","body":"Sorry, didn't mean to close it (!)"}}