skarim / vobject

A full-featured Python package for parsing and creating iCalendar and vCard files
https://vobject.sameenkarim.com
258 stars 93 forks source link

Pullrequest dtstart exdate tz fix #146

Open JoachimFalk opened 5 years ago

JoachimFalk commented 5 years ago

Description: Fixed exception can't compare offset-naive and offset-aware datetimes Author: Joachim Falk joachim.falk@gmx.de

Fixed exception 'TypeError: can't compare offset-naive and offset-aware datetimes' triggered when DTSTART and EXDATE not both have or not have timez one information. Fix will propagte time zone information from from DTSTART to EXDATE if EXDATE does not have a TZ or strip the TZ from EXDATE when DTSTART does not have time zone information.

JoachimFalk commented 5 years ago

The proposed patch should fix issue #139 "TypeError: can't compare offset-naive and offset-aware datetimes in getrruleset"