1.1 --- a/imiptools/data.py Tue Oct 06 00:09:07 2015 +0200
1.2 +++ b/imiptools/data.py Tue Oct 06 18:38:45 2015 +0200
1.3 @@ -411,14 +411,18 @@
1.4 if self.has_key("RDATE"):
1.5 del self["RDATE"]
1.6
1.7 + main_changed = False
1.8 +
1.9 for p in periods:
1.10 - if p.origin != "RRULE":
1.11 + if p.origin == "RDATE":
1.12 new_rdates.append(get_period_item(p.get_start(), p.get_end()))
1.13 + elif p.origin == "DTSTART":
1.14 + main_changed = self.set_period(p)
1.15
1.16 if new_rdates:
1.17 self["RDATE"] = new_rdates
1.18
1.19 - return old_values != set(self.get_date_values("RDATE") or [])
1.20 + return main_changed or old_values != set(self.get_date_values("RDATE") or [])
1.21
1.22 def update_dtstamp(self):
1.23