1.1 --- a/imiptools/period.py Tue Apr 19 18:17:06 2016 +0200
1.2 +++ b/imiptools/period.py Tue Apr 19 18:51:53 2016 +0200
1.3 @@ -280,8 +280,13 @@
1.4 return None
1.5 d = get_recurrence_start(recurrenceid)
1.6 dt = get_recurrence_start_point(recurrenceid, self.tzid)
1.7 - if self.get_start() == d or self.get_start_point() == dt:
1.8 +
1.9 + # Compare the start to dates only, using the normalised start datetime
1.10 + # for comparisons with the start point.
1.11 +
1.12 + if not isinstance(d, datetime) and self.get_start() == d or self.get_start_point() == dt:
1.13 return recurrenceid
1.14 +
1.15 return None
1.16
1.17 # Value correction methods.