1.1 --- a/EventAggregatorSupport/Filter.py Sat Dec 21 00:57:55 2013 +0100
1.2 +++ b/EventAggregatorSupport/Filter.py Sat Dec 21 01:10:14 2013 +0100
1.3 @@ -208,10 +208,11 @@
1.4 start, end = timespan.as_limits()
1.5
1.6 # Add either genuine times or dates converted to times.
1.7 + # NOTE: UTC conversions will fail silently without pytz.
1.8
1.9 if isinstance(start, DateTime):
1.10 value = start
1.11 - key = value.to_utc(), START
1.12 + key = value.to_utc() or value, START
1.13 else:
1.14 value = start.as_start_of_day()
1.15 key = value, START
1.16 @@ -222,7 +223,7 @@
1.17
1.18 if isinstance(end, DateTime):
1.19 value = end
1.20 - key = value.to_utc(), END
1.21 + key = value.to_utc() or value, END
1.22 else:
1.23 value = end.as_date().next_day()
1.24 key = value, END