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
EXDATE parameter parsing was added with #859 / #410.
The parameter parsing, however, does not respect ignoretz=True. This becomes a problem when trying to use any of the utility methods on the rrule, such as .before(dt).
I realize that 2.8.0 was released in 2019, but this change makes upgrading a bit difficult as the new EXDATE parameter parsing makes the behavior not backwards compatible. The workaround seems to be passing both a tz-aware datetime to dtstart and .before(dt) if there's a TZID included on EXDATE. Though it's sort of hard to tell beforehand if there's going to be a TZID parameter there.
I would expect that passing ignoretz=True torrulestr would make EXDATE parsing ignore any TZID.
The text was updated successfully, but these errors were encountered:
EXDATE
parameter parsing was added with #859 / #410.The parameter parsing, however, does not respect
ignoretz=True
. This becomes a problem when trying to use any of the utility methods on the rrule, such as.before(dt)
.Here's an example:
Prior to 2.8.x, this same snippet worked correctly and did not throw an error.
Version information:
$ python -c "import dateutil; print(dateutil.__version__)" 2.8.2 $ python --version Python 3.8.10
I realize that 2.8.0 was released in 2019, but this change makes upgrading a bit difficult as the new EXDATE parameter parsing makes the behavior not backwards compatible. The workaround seems to be passing both a tz-aware datetime to
dtstart
and.before(dt)
if there's aTZID
included onEXDATE
. Though it's sort of hard to tell beforehand if there's going to be aTZID
parameter there.I would expect that passing
ignoretz=True
torrulestr
would makeEXDATE
parsing ignore anyTZID
.The text was updated successfully, but these errors were encountered: