You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The icalendar.prop provides a couple of subclasses of datetime.tzinfo called LocalTimezone and FixedOffset. These made sense with the "old" version of this module, but now, since all tzinfo arguments must come from pytz, these classes no longer work. Using them causes an error like this:
...
event.add('dtstart', date)
File ".../icalendar/cal.py", line 296, in add
tzid = value.tzinfo.zone
AttributeError: 'LocalTimezone' object has no attribute 'zone'
So these classes should probably either be removed or updated to inherit from the pytz class.
The text was updated successfully, but these errors were encountered:
The
icalendar.prop
provides a couple of subclasses ofdatetime.tzinfo
calledLocalTimezone
andFixedOffset
. These made sense with the "old" version of this module, but now, since alltzinfo
arguments must come from pytz, these classes no longer work. Using them causes an error like this:So these classes should probably either be removed or updated to inherit from the pytz class.
The text was updated successfully, but these errors were encountered: