icalendar/master: fix timezone count
Christian Geier <jenkins-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Repository: icalendar Branch: refs/heads/master Date: 2017-07-02T19:42:02+02:00 Author: Christian Geier (geier) <[email protected]> Commit: https://github.com/collective/icalendar/commit/fcec6222c4dcb2b8b2bebacfd0c36e79216d6865 fix timezone count Files changed: M src/icalendar/cal.py diff --git a/src/icalendar/cal.py b/src/icalendar/cal.py index e4dc350..ad7a25d 100644 --- a/src/icalendar/cal.py +++ b/src/icalendar/cal.py @@ -543,7 +543,7 @@ def _extract_offsets(component, tzname): # pytz.timezones don't know any transition dates after 2038 # either rrule._until = datetime(2038, 12, 31) - elif rrule._until.tzinfo: + elif 'UNTIL' in component['RRULE'] and rrule._until.tzinfo: rrule._until = rrule._until.replace(tzinfo=None) transtimes = rrule # or rdates ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot