1.1 --- a/tools/make_freebusy.py Tue Apr 07 22:06:39 2015 +0200
1.2 +++ b/tools/make_freebusy.py Tue Apr 07 22:08:05 2015 +0200
1.3 @@ -1,7 +1,7 @@
1.4 #!/usr/bin/env python
1.5
1.6 from imiptools.data import get_window_end, Object
1.7 -from imiptools.dates import format_datetime, get_default_timezone
1.8 +from imiptools.dates import format_datetime, get_default_timezone, to_recurrence_start
1.9 from imiptools.period import FreeBusyPeriod
1.10 from imiptools.profile import Preferences
1.11 from imip_store import FileStore, FilePublisher
1.12 @@ -12,6 +12,7 @@
1.13 # Update free/busy details with the actual periods associated with the event.
1.14
1.15 recurrenceid = format_datetime(obj.get_utc_datetime("RECURRENCE-ID")) or ""
1.16 + recurrenceids = [to_recurrence_start(r, tzid) for r in recurrenceids]
1.17
1.18 for p in obj.get_periods_for_freebusy(tzid, window_end):
1.19 if recurrenceid or p.start not in recurrenceids: