1.1 --- a/imiptools/period.py Tue Mar 10 22:11:50 2015 +0100
1.2 +++ b/imiptools/period.py Tue Mar 10 22:28:05 2015 +0100
1.3 @@ -314,7 +314,16 @@
1.4 # are active and where no such slot already exists.
1.5
1.6 if this_date != current_date:
1.7 - current_date = this_date
1.8 +
1.9 + # Fill in days where events remain active.
1.10 +
1.11 + if current_date:
1.12 + current_date += timedelta(1)
1.13 + while current_date < this_date:
1.14 + new_slots.append((get_start_of_day(current_date, tzid), previously_active))
1.15 + current_date += timedelta(1)
1.16 + else:
1.17 + current_date = this_date
1.18
1.19 # Add any continuing periods.
1.20