# HG changeset patch # User Paul Boddie # Date 1517697004 -3600 # Node ID 4f171f95185724a4b4eefb3062a99c22d493c240 # Parent e29f6de1f89737ed59dd52eeeb8676ec05840250 Provide the tzid to permit conversion of dates to datetimes. diff -r e29f6de1f897 -r 4f171f951857 imiptools/data.py --- a/imiptools/data.py Sat Feb 03 16:20:52 2018 +0100 +++ b/imiptools/data.py Sat Feb 03 23:30:04 2018 +0100 @@ -1297,7 +1297,7 @@ # until the end of time must wrap each period for that period to be # included. The end will be handled in the materialisation process. - return ifilter(Period(start, None).wraps, + return ifilter(Period(start, None, tzid).wraps, RulePeriodCollection(selector, main_period, tzid, end, inclusive))