Closed fabrepe closed 9 years ago
HI @fabrepe,
sorry for the late reply. You example is missing the timezone information for Berlin. Can you make sure it works if you use this instead?
BEGIN:VCALENDAR
VERSION:2.0
PRODID:ownCloud Calendar
BEGIN:VTIMEZONE
TZID:Europe/Berlin
BEGIN:STANDARD
DTSTART:20001029T030000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20000326T020000
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
CREATED;VALUE=DATE-TIME:20150413T092233Z
UID:697c1d5049
LAST-MODIFIED;VALUE=DATE-TIME:20150413T092233Z
DTSTAMP;VALUE=DATE-TIME:20150413T092233Z
SUMMARY:toto
DTSTART;VALUE=DATE-TIME;TZID=Europe/Berlin:20150415T000000
DTEND;VALUE=DATE-TIME;TZID=Europe/Berlin:20150415T000000
END:VEVENT
END:VCALENDAR
I will release a new version with a bugfix later today.
I've release version 0.4.0 which includes this fix to pypi as well. Can you please test it? Thanks!
I apologize, i really had no time to check it. I am doing it with the new pip version (0.5.3).
Hello,
At first, thanks for this useful tool. But 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".
All day events (no start/end hours provided) are not causing error.
Thanks you again for your work.
Here is the print of a vevent leading to the error
BEGIN:VCALENDAR VERSION:2.0 PRODID:ownCloud Calendar BEGIN:VEVENT CREATED;VALUE=DATE-TIME:20150413T092233Z UID:697c1d5049 LAST-MODIFIED;VALUE=DATE-TIME:20150413T092233Z DTSTAMP;VALUE=DATE-TIME:20150413T092233Z SUMMARY:toto DTSTART;VALUE=DATE-TIME;TZID=Europe/Berlin:20150415T000000 DTEND;VALUE=DATE-TIME;TZID=Europe/Berlin:20150415T000000 END:VEVENT END:VCALENDAR
Here is the stacktrace from ipython :
ValueError Traceback (most recent call last)