{"action":"created","issue":{"url":"https://api.github.com/repos/jspricke/python-remind/issues/2","labels_url":"https://api.github.com/repos/jspricke/python-remind/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jspricke/python-remind/issues/2/comments","events_url":"https://api.github.com/repos/jspricke/python-remind/issues/2/events","html_url":"https://github.com/jspricke/python-remind/issues/2","id":68060699,"number":2,"title":"ValueError in vevent parsing","user":{"login":"fabrepe","id":7430444,"avatar_url":"https://avatars.githubusercontent.com/u/7430444?v=3","gravatar_id":"","url":"https://api.github.com/users/fabrepe","html_url":"https://github.com/fabrepe","followers_url":"https://api.github.com/users/fabrepe/followers","following_url":"https://api.github.com/users/fabrepe/following{/other_user}","gists_url":"https://api.github.com/users/fabrepe/gists{/gist_id}","starred_url":"https://api.github.com/users/fabrepe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabrepe/subscriptions","organizations_url":"https://api.github.com/users/fabrepe/orgs","repos_url":"https://api.github.com/users/fabrepe/repos","events_url":"https://api.github.com/users/fabrepe/events{/privacy}","received_events_url":"https://api.github.com/users/fabrepe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T10:10:01Z","updated_at":"2015-06-24T07:14:49Z","closed_at":"2015-04-29T06:31:11Z","body":"Hello,\r\n\r\nAt first, thanks for this useful tool.\r\nBut for my part it is unusable. I would like to use the script to retrieve owncloud stored icals but I got the following error: \"ValueError: astimezone() cannot be applied to a naive datetime\".\r\n\r\nAll day events (no start/end hours provided) are not causing error.\r\n\r\nThanks you again for your work.\r\n\r\nHere is the print of a vevent leading to the error\r\n ---------------------------------------------------------------------------\r\nBEGIN:VCALENDAR\r\nVERSION:2.0\r\nPRODID:ownCloud Calendar\r\nBEGIN:VEVENT\r\nCREATED;VALUE=DATE-TIME:20150413T092233Z\r\nUID:697c1d5049\r\nLAST-MODIFIED;VALUE=DATE-TIME:20150413T092233Z\r\nDTSTAMP;VALUE=DATE-TIME:20150413T092233Z\r\nSUMMARY:toto\r\nDTSTART;VALUE=DATE-TIME;TZID=Europe/Berlin:20150415T000000\r\nDTEND;VALUE=DATE-TIME;TZID=Europe/Berlin:20150415T000000\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n ---------------------------------------------------------------------------\r\n\r\n\r\nHere is the stacktrace from ipython : \r\n ---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-18-69ca7f596f87> in <module>()\r\n      2     vevent = rdict[uid]\r\n      3     vevent.load()\r\n----> 4     rem.append(vevent.data)\r\n      5 \r\n\r\n/usr/local/lib/python2.7/dist-packages/remind.pyc in append(self, ical, filename)\r\n    379 \r\n    380         with self._lock:\r\n--> 381             copen(filename, 'a', encoding='utf-8').write(self.to_reminders(readOne(ical)))\r\n    382 \r\n    383     def remove(self, uid, filename=None):\r\n\r\n/usr/local/lib/python2.7/dist-packages/remind.pyc in to_reminders(self, ical, label, priority)\r\n    368     def to_reminders(self, ical, label=None, priority=None):\r\n    369         \"\"\"Return Remind commands for all events of a iCalendar\"\"\"\r\n--> 370         reminders = [self.to_remind(vevent, label, priority) for vevent in ical.vevent_list]\r\n    371         return ''.join(reminders)\r\n    372 \r\n\r\n/usr/local/lib/python2.7/dist-packages/remind.pyc in to_remind(self, vevent, label, priority)\r\n    353 \r\n    354         if isinstance(vevent.dtstart.value, datetime):\r\n--> 355             remind.append(vevent.dtstart.value.astimezone(self._localtz).strftime('AT %H:%M').replace(' 0', ' '))\r\n    356             if duration.total_seconds() > 0:\r\n    357                 remind.append('DURATION %d:%02d' % divmod(duration.total_seconds() / 60, 60))\r\n\r\nValueError: astimezone() cannot be applied to a naive datetime\r\n\r\n-------------------------------------------------------------------------------------------------------------------------------"},"comment":{"url":"https://api.github.com/repos/jspricke/python-remind/issues/comments/114757284","html_url":"https://github.com/jspricke/python-remind/issues/2#issuecomment-114757284","issue_url":"https://api.github.com/repos/jspricke/python-remind/issues/2","id":114757284,"user":{"login":"fabrepe","id":7430444,"avatar_url":"https://avatars.githubusercontent.com/u/7430444?v=3","gravatar_id":"","url":"https://api.github.com/users/fabrepe","html_url":"https://github.com/fabrepe","followers_url":"https://api.github.com/users/fabrepe/followers","following_url":"https://api.github.com/users/fabrepe/following{/other_user}","gists_url":"https://api.github.com/users/fabrepe/gists{/gist_id}","starred_url":"https://api.github.com/users/fabrepe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabrepe/subscriptions","organizations_url":"https://api.github.com/users/fabrepe/orgs","repos_url":"https://api.github.com/users/fabrepe/repos","events_url":"https://api.github.com/users/fabrepe/events{/privacy}","received_events_url":"https://api.github.com/users/fabrepe/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T07:14:49Z","updated_at":"2015-06-24T07:14:49Z","body":"I apologize, i really had no time to check it. I am doing it with the new pip version (0.5.3)."}}